summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-22 20:03:26 +0000
committerrubidium <rubidium@openttd.org>2009-05-22 20:03:26 +0000
commitada30679605644a228be26850a76370fea723799 (patch)
treed098c10dc31b2131e91953543f2f3d5683b301eb /src/openttd.cpp
parent09d64ff79dfb8dd52355fe269a582fe75b2615e0 (diff)
downloadopenttd-ada30679605644a228be26850a76370fea723799.tar.xz
(svn r16387) -Codechange: use Aircraft instead of Vehicle where appropriate
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 3b5ff715a..ba4a96cce 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1145,9 +1145,10 @@ void StateGameLoop()
} break;
case VEH_AIRCRAFT: {
- uint speed = v->u.air.cached_max_speed;
- UpdateAircraftCache(v);
- if (speed != v->u.air.cached_max_speed) {
+ Aircraft *a = (Aircraft *)v;
+ uint speed = a->u.air.cached_max_speed;
+ UpdateAircraftCache(a);
+ if (speed != a->u.air.cached_max_speed) {
DEBUG(desync, 2, "cache mismatch: vehicle %i, company %i, unit number %i\n", v->index, (int)v->owner, v->unitnumber);
}
} break;