summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-10-24 19:40:48 +0000
committerbjarni <bjarni@openttd.org>2005-10-24 19:40:48 +0000
commitbf467bd99c36842c259dd11b6ac2be69db72e745 (patch)
treecf9fee9ef1a7b1f4ef668ebcedec8d771cdfc860 /roadveh_cmd.c
parente0dd7efc82fbe232c59e4c5a84d714159b3e7d5f (diff)
downloadopenttd-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 'roadveh_cmd.c')
-rw-r--r--roadveh_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index a5a405982..ab9254799 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -1521,7 +1521,7 @@ void RoadVehEnterDepot(Vehicle *v)
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
- MaybeReplaceVehicle(v);
+ v = MaybeReplaceVehicle(v);
VehicleServiceInDepot(v);