(svn r12892) -Fix: too many items in the vehicle toolbars were greyed out.
authorrubidium
Fri, 25 Apr 2008 06:15:58 +0000
changeset 10350 e08d68483283
parent 10342 6f57df77abd8
child 10354 74833583b5b4
(svn r12892) -Fix: too many items in the vehicle toolbars were greyed out.
src/toolbar_gui.cpp
--- a/src/toolbar_gui.cpp	Thu Apr 24 23:50:40 2008 +0000
+++ b/src/toolbar_gui.cpp	Fri Apr 25 06:15:58 2008 +0000
@@ -314,10 +314,7 @@
 	int dis = ~0;
 
 	FOR_ALL_VEHICLES(v) {
-		if (v->type == veh && v->IsPrimaryVehicle()) {
-			ClrBit(dis, v->owner);
-			break;
-		}
+		if (v->type == veh && v->IsPrimaryVehicle()) ClrBit(dis, v->owner);
 	}
 	PopupMainPlayerToolbMenu(w, 13 + veh, dis);
 }