summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vehicle.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 178596a4f..963f3a042 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1072,11 +1072,14 @@ void VehicleEnterDepot(Vehicle *v)
SetWindowClassesDirty(WC_ROADVEH_LIST);
break;
- case VEH_SHIP:
+ case VEH_SHIP: {
SetWindowClassesDirty(WC_SHIPS_LIST);
- Ship::From(v)->state = TRACK_BIT_DEPOT;
- RecalcShipStuff(Ship::From(v));
+ Ship *ship = Ship::From(v);
+ ship->state = TRACK_BIT_DEPOT;
+ ship->UpdateViewport(true, true);
+ SetWindowDirty(WC_VEHICLE_DEPOT, v->tile);
break;
+ }
case VEH_AIRCRAFT:
SetWindowClassesDirty(WC_AIRCRAFT_LIST);