mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-05 13:57:01 +00:00
(svn r14643) -Fix: Invalidate autoreplace window when toggling 'replace protection'.
This commit is contained in:
parent
0191220b64
commit
a0327b375f
@ -335,6 +335,7 @@ CommandCost CmdSetGroupReplaceProtection(TileIndex tile, uint32 flags, uint32 p1
|
|||||||
g->replace_protection = HasBit(p2, 0);
|
g->replace_protection = HasBit(p2, 0);
|
||||||
|
|
||||||
InvalidateWindowData(GetWindowClassForVehicleType(g->vehicle_type), (g->vehicle_type << 11) | VLW_GROUP_LIST | _current_company);
|
InvalidateWindowData(GetWindowClassForVehicleType(g->vehicle_type), (g->vehicle_type << 11) | VLW_GROUP_LIST | _current_company);
|
||||||
|
InvalidateWindowData(WC_REPLACE_VEHICLE, g->vehicle_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
return CommandCost();
|
return CommandCost();
|
||||||
|
Loading…
Reference in New Issue
Block a user