--- a/ship_cmd.c Mon Oct 24 05:51:23 2005 +0000
+++ b/ship_cmd.c Mon Oct 24 19:40:48 2005 +0000
@@ -414,7 +414,7 @@
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
- MaybeReplaceVehicle(v);
+ v = MaybeReplaceVehicle(v);
TriggerVehicle(v, VEHICLE_TRIGGER_DEPOT);