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/ship_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/ship_cmd.cpp')
-rw-r--r-- | src/ship_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index 1cba23e0d..29be282e6 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -897,7 +897,7 @@ CommandCost CmdBuildShip(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) RebuildVehicleLists(); InvalidateWindow(WC_COMPANY, v->owner); if (IsLocalPlayer()) - InvalidateAutoreplaceWindow(VEH_SHIP, v->group_id); // updates the replace Ship window + InvalidateAutoreplaceWindow(v->engine_type, v->group_id); // updates the replace Ship window GetPlayer(_current_player)->num_engines[p1]++; |