From f1679bcbb7276aa61b968e5b7e9ffab0bf379b92 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 25 Apr 2008 06:15:58 +0000 Subject: (svn r12892) -Fix: too many items in the vehicle toolbars were greyed out. --- src/toolbar_gui.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/toolbar_gui.cpp') diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index d2d264793..454e4a4d0 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -314,10 +314,7 @@ static void ToolbarVehicleClick(Window *w, VehicleType veh) 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); } -- cgit v1.2.3-54-g00ecf