summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index 5b0c1b99f..3c12b3752 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -1307,7 +1307,7 @@ static void AircraftEnterHangar(Vehicle *v)
ServiceAircraft(v);
InvalidateWindowClasses(WC_AIRCRAFT_LIST);
- MaybeReplaceVehicle(v);
+ v = MaybeReplaceVehicle(v);
TriggerVehicle(v, VEHICLE_TRIGGER_DEPOT);