summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-22 20:18:45 +0000
committerrubidium <rubidium@openttd.org>2009-05-22 20:18:45 +0000
commitd37b840cf30ea987ab676f1a3631e112cac06244 (patch)
treee66cefea331f2f4191a6c169e75e9f272b60ef1e /src/openttd.cpp
parentc882248348510265e1926b0abc031b4c6fb0f97f (diff)
downloadopenttd-d37b840cf30ea987ab676f1a3631e112cac06244.tar.xz
(svn r16389) -Codechange: use RoadVehicle instead of Vehicle where appropriate
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index e22cbea01..218f11f2b 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -30,6 +30,7 @@
#include "fileio_func.h"
#include "fios.h"
#include "aircraft.h"
+#include "roadveh.h"
#include "console_func.h"
#include "screenshot.h"
#include "network/network.h"
@@ -1117,8 +1118,8 @@ void StateGameLoop()
switch (v->type) {
case VEH_ROAD: {
- extern byte GetRoadVehLength(const Vehicle *v);
- if (GetRoadVehLength(v) != v->u.road.cached_veh_length) {
+ extern byte GetRoadVehLength(const RoadVehicle *v);
+ if (GetRoadVehLength((RoadVehicle *)v) != v->u.road.cached_veh_length) {
DEBUG(desync, 2, "cache mismatch: vehicle %i, company %i, unit number %i\n", v->index, (int)v->owner, v->unitnumber);
}
} break;