summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}