summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/openttd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index c74709b43..8c938f164 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -30,6 +30,7 @@
#include "aircraft.h"
#include "roadveh.h"
#include "train.h"
+#include "ship.h"
#include "console_func.h"
#include "screenshot.h"
#include "network/network.h"
@@ -1168,6 +1169,7 @@ static void CheckCaches()
case VEH_TRAIN: Train::From(v)->ConsistChanged(true); break;
case VEH_ROAD: RoadVehUpdateCache(RoadVehicle::From(v)); break;
case VEH_AIRCRAFT: UpdateAircraftCache(Aircraft::From(v)); break;
+ case VEH_SHIP: Ship::From(v)->UpdateCache(); break;
default: break;
}