summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
diff options
context:
space:
mode:
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);