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 | 6ed5c01143b91eec8fa03b2bb77439a8f668f896 (patch) | |
tree | c04e62539db9089054a19597685dac99a1338dd9 | |
parent | 6b961f7ba6a8e9b7e79a3698235e0b622f46ab8f (diff) | |
download | openttd-6ed5c01143b91eec8fa03b2bb77439a8f668f896.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); } |