diff options
author | bjarni <bjarni@openttd.org> | 2007-08-07 23:07:10 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2007-08-07 23:07:10 +0000 |
commit | 495bc4ecf46c8ae42ee616e1d6c91407cee7396c (patch) | |
tree | 8fae74afa5edd164c837717a6ea4224538415e94 /src/aircraft_cmd.cpp | |
parent | 106d5c3715aee4b4f65f6fb13a5006c04f86254c (diff) | |
download | openttd-495bc4ecf46c8ae42ee616e1d6c91407cee7396c.tar.xz |
(svn r10823) -Fix r8610 [FS#1097]: the autoreplace window vehicle count didn't always update correctly) (Matthias)
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index b21448786..6e2977dc2 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -452,7 +452,7 @@ CommandCost CmdBuildAircraft(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) RebuildVehicleLists(); InvalidateWindow(WC_COMPANY, v->owner); if (IsLocalPlayer()) - InvalidateAutoreplaceWindow(VEH_AIRCRAFT, v->group_id); //updates the replace Aircraft window + InvalidateAutoreplaceWindow(v->engine_type, v->group_id); //updates the replace Aircraft window GetPlayer(_current_player)->num_engines[p1]++; } |