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 | a973c893fbcde83fe4e269f609e9dae27bf17e9e (patch) | |
tree | 8fae74afa5edd164c837717a6ea4224538415e94 /src/train_cmd.cpp | |
parent | fcf9130ee5e684e60134eb0988f0e5508e15db61 (diff) | |
download | openttd-a973c893fbcde83fe4e269f609e9dae27bf17e9e.tar.xz |
(svn r10823) -Fix r8610 [FS#1097]: the autoreplace window vehicle count didn't always update correctly) (Matthias)
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index eab077ad6..d604d633d 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -588,7 +588,7 @@ static CommandCost CmdBuildRailWagon(EngineID engine, TileIndex tile, uint32 fla InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); if (IsLocalPlayer()) { - InvalidateAutoreplaceWindow(VEH_TRAIN, v->group_id); // updates the replace Train window + InvalidateAutoreplaceWindow(v->engine_type, v->group_id); // updates the replace Train window } GetPlayer(_current_player)->num_engines[engine]++; } @@ -772,7 +772,7 @@ CommandCost CmdBuildRailVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 RebuildVehicleLists(); InvalidateWindow(WC_COMPANY, v->owner); if (IsLocalPlayer()) - InvalidateAutoreplaceWindow(VEH_TRAIN, v->group_id); // updates the replace Train window + InvalidateAutoreplaceWindow(v->engine_type, v->group_id); // updates the replace Train window GetPlayer(_current_player)->num_engines[p1]++; } |