summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-11-29 21:27:15 +0000
committerfrosch <frosch@openttd.org>2008-11-29 21:27:15 +0000
commit728e2543a003d072198710b7c7ba63df6e8139f9 (patch)
tree1016aef0dd82d798d74af20dd4cd4c0385d90b18 /src
parent0b4781a9c7119fe7eca6bf39a0c1da3213b6f8db (diff)
downloadopenttd-728e2543a003d072198710b7c7ba63df6e8139f9.tar.xz
(svn r14643) -Fix: Invalidate autoreplace window when toggling 'replace protection'.
Diffstat (limited to 'src')
-rw-r--r--src/group_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp
index 46ab84b2b..3af23a041 100644
--- a/src/group_cmd.cpp
+++ b/src/group_cmd.cpp
@@ -335,6 +335,7 @@ CommandCost CmdSetGroupReplaceProtection(TileIndex tile, uint32 flags, uint32 p1
g->replace_protection = HasBit(p2, 0);
InvalidateWindowData(GetWindowClassForVehicleType(g->vehicle_type), (g->vehicle_type << 11) | VLW_GROUP_LIST | _current_company);
+ InvalidateWindowData(WC_REPLACE_VEHICLE, g->vehicle_type);
}
return CommandCost();