mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 13:39:09 +00:00
(svn r12892) -Fix: too many items in the vehicle toolbars were greyed out.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user