summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-11-27 21:11:37 +0000
committerterkhen <terkhen@openttd.org>2010-11-27 21:11:37 +0000
commit92d14f692bddd0818c7c7aa318fae855e0681171 (patch)
tree6a2f13d4876bca1cb74af8801d52688c47f844e6 /src
parentb46e57d3640ea6b2b6f301ebaa454084565da301 (diff)
downloadopenttd-92d14f692bddd0818c7c7aa318fae855e0681171.tar.xz
(svn r21339) -Fix [FS#4272]: The VehicleCache was not checked for ships with desync debug options enabled.
Diffstat (limited to 'src')
-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;
}