summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-25 06:15:58 +0000
committerrubidium <rubidium@openttd.org>2008-04-25 06:15:58 +0000
commitf1679bcbb7276aa61b968e5b7e9ffab0bf379b92 (patch)
treec04e62539db9089054a19597685dac99a1338dd9
parente7582da1063756f44e7bea80a2d4b2a1719440d7 (diff)
downloadopenttd-f1679bcbb7276aa61b968e5b7e9ffab0bf379b92.tar.xz
(svn r12892) -Fix: too many items in the vehicle toolbars were greyed out.
-rw-r--r--src/toolbar_gui.cpp5
1 files changed, 1 insertions, 4 deletions
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);
}