mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r12892) -Fix: too many items in the vehicle toolbars were greyed out.
This commit is contained in:
parent
e7582da106
commit
f1679bcbb7
|
@ -314,10 +314,7 @@ static void ToolbarVehicleClick(Window *w, VehicleType veh)
|
||||||
int dis = ~0;
|
int dis = ~0;
|
||||||
|
|
||||||
FOR_ALL_VEHICLES(v) {
|
FOR_ALL_VEHICLES(v) {
|
||||||
if (v->type == veh && v->IsPrimaryVehicle()) {
|
if (v->type == veh && v->IsPrimaryVehicle()) ClrBit(dis, v->owner);
|
||||||
ClrBit(dis, v->owner);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
PopupMainPlayerToolbMenu(w, 13 + veh, dis);
|
PopupMainPlayerToolbMenu(w, 13 + veh, dis);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue