diff options
author | rubidium <rubidium@openttd.org> | 2009-05-22 20:22:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-22 20:22:20 +0000 |
commit | 7a37220881c995f317bf5bd0f3077fa6c9e9d098 (patch) | |
tree | 347d24d175af30acacfedfb4ddf5c9e98d876036 /src/openttd.cpp | |
parent | d37b840cf30ea987ab676f1a3631e112cac06244 (diff) | |
download | openttd-7a37220881c995f317bf5bd0f3077fa6c9e9d098.tar.xz |
(svn r16390) -Codechange: move u.road to RoadVehicle.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 218f11f2b..db4f56f4d 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1119,7 +1119,7 @@ void StateGameLoop() switch (v->type) { case VEH_ROAD: { extern byte GetRoadVehLength(const RoadVehicle *v); - if (GetRoadVehLength((RoadVehicle *)v) != v->u.road.cached_veh_length) { + if (GetRoadVehLength((RoadVehicle *)v) != ((RoadVehicle *)v)->cached_veh_length) { DEBUG(desync, 2, "cache mismatch: vehicle %i, company %i, unit number %i\n", v->index, (int)v->owner, v->unitnumber); } } break; |