From 92d14f692bddd0818c7c7aa318fae855e0681171 Mon Sep 17 00:00:00 2001 From: terkhen Date: Sat, 27 Nov 2010 21:11:37 +0000 Subject: (svn r21339) -Fix [FS#4272]: The VehicleCache was not checked for ships with desync debug options enabled. --- src/openttd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2