diff options
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 5 |
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; |