diff options
author | rubidium <rubidium@openttd.org> | 2008-04-25 06:15:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-25 06:15:58 +0000 |
commit | f1679bcbb7276aa61b968e5b7e9ffab0bf379b92 (patch) | |
tree | c04e62539db9089054a19597685dac99a1338dd9 | |
parent | e7582da1063756f44e7bea80a2d4b2a1719440d7 (diff) | |
download | openttd-f1679bcbb7276aa61b968e5b7e9ffab0bf379b92.tar.xz |
(svn r12892) -Fix: too many items in the vehicle toolbars were greyed out.
-rw-r--r-- | src/toolbar_gui.cpp | 5 |
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); } |