diff options
author | bjarni <bjarni@openttd.org> | 2005-10-24 19:40:48 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-10-24 19:40:48 +0000 |
commit | bf467bd99c36842c259dd11b6ac2be69db72e745 (patch) | |
tree | cf9fee9ef1a7b1f4ef668ebcedec8d771cdfc860 /ship_cmd.c | |
parent | e0dd7efc82fbe232c59e4c5a84d714159b3e7d5f (diff) | |
download | openttd-bf467bd99c36842c259dd11b6ac2be69db72e745.tar.xz |
(svn r3081) -Codechange: [autoreplace] complete rewrite of autoreplace
this is a complete rewrite, that makes use of existing commands like build and sell
this means that multiheaded train engines are replaced correctly
Diffstat (limited to 'ship_cmd.c')
-rw-r--r-- | ship_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ship_cmd.c b/ship_cmd.c index aa42a7b2b..a0f4f8738 100644 --- a/ship_cmd.c +++ b/ship_cmd.c @@ -414,7 +414,7 @@ static void ShipEnterDepot(Vehicle *v) InvalidateWindow(WC_VEHICLE_DETAILS, v->index); - MaybeReplaceVehicle(v); + v = MaybeReplaceVehicle(v); TriggerVehicle(v, VEHICLE_TRIGGER_DEPOT); |