From 728e2543a003d072198710b7c7ba63df6e8139f9 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 29 Nov 2008 21:27:15 +0000 Subject: (svn r14643) -Fix: Invalidate autoreplace window when toggling 'replace protection'. --- src/group_cmd.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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(); -- cgit v1.2.3-54-g00ecf