From de357c74c1ac4df582f32849bfbc5681c3552171 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 27 Jun 2007 20:40:20 +0000 Subject: (svn r10363) -Fix [FS#911]: invalidating autoreplace windows didn't take account of vehicle group (Matthias Wolf) --- src/ship_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ship_cmd.cpp') diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index 2a76c8d8c..f98fde144 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -894,7 +894,7 @@ CommandCost CmdBuildShip(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) RebuildVehicleLists(); InvalidateWindow(WC_COMPANY, v->owner); if (IsLocalPlayer()) - InvalidateAutoreplaceWindow(VEH_SHIP); // updates the replace Ship window + InvalidateAutoreplaceWindow(VEH_SHIP, v->group_id); // updates the replace Ship window GetPlayer(_current_player)->num_engines[p1]++; } -- cgit v1.2.3-54-g00ecf