diff options
author | frosch <frosch@openttd.org> | 2012-10-01 19:43:10 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-10-01 19:43:10 +0000 |
commit | d9b709ba45661705eca5288f9ce1c8c542540b70 (patch) | |
tree | 6450c5bc2f51030539d3f4cad12731ad597f141f /src | |
parent | 6018a0190e1e10a199f311ec399c0c816f9e4913 (diff) | |
download | openttd-d9b709ba45661705eca5288f9ce1c8c542540b70.tar.xz |
(svn r24568) -Codechange: No need to resort the group GUI when toggling the autoreplace protection. (Juanjo)
Diffstat (limited to 'src')
-rw-r--r-- | src/group_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp index fbb043841..388ccf796 100644 --- a/src/group_cmd.cpp +++ b/src/group_cmd.cpp @@ -562,7 +562,7 @@ CommandCost CmdSetGroupReplaceProtection(TileIndex tile, DoCommandFlag flags, ui if (flags & DC_EXEC) { g->replace_protection = HasBit(p2, 0); - InvalidateWindowData(GetWindowClassForVehicleType(g->vehicle_type), VehicleListIdentifier(VL_GROUP_LIST, g->vehicle_type, _current_company).Pack()); + SetWindowDirty(GetWindowClassForVehicleType(g->vehicle_type), VehicleListIdentifier(VL_GROUP_LIST, g->vehicle_type, _current_company).Pack()); InvalidateWindowData(WC_REPLACE_VEHICLE, g->vehicle_type); } |