summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-06-27 20:40:20 +0000
committerpeter1138 <peter1138@openttd.org>2007-06-27 20:40:20 +0000
commitde357c74c1ac4df582f32849bfbc5681c3552171 (patch)
tree30e7a8bb576d442ce724911974f73d059b2ee6b3 /src/aircraft_cmd.cpp
parent2a96ca698380b003d1e68f82b1d3fdc4b4df0e44 (diff)
downloadopenttd-de357c74c1ac4df582f32849bfbc5681c3552171.tar.xz
(svn r10363) -Fix [FS#911]: invalidating autoreplace windows didn't take account of vehicle group (Matthias Wolf)
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index e3045be0a..fa16ab26b 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -451,7 +451,7 @@ CommandCost CmdBuildAircraft(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
RebuildVehicleLists();
InvalidateWindow(WC_COMPANY, v->owner);
if (IsLocalPlayer())
- InvalidateAutoreplaceWindow(VEH_AIRCRAFT); //updates the replace Aircraft window
+ InvalidateAutoreplaceWindow(VEH_AIRCRAFT, v->group_id); //updates the replace Aircraft window
GetPlayer(_current_player)->num_engines[p1]++;
}