summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index ba4a96cce..e22cbea01 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1146,9 +1146,9 @@ void StateGameLoop()
case VEH_AIRCRAFT: {
Aircraft *a = (Aircraft *)v;
- uint speed = a->u.air.cached_max_speed;
+ uint speed = a->cached_max_speed;
UpdateAircraftCache(a);
- if (speed != a->u.air.cached_max_speed) {
+ if (speed != a->cached_max_speed) {
DEBUG(desync, 2, "cache mismatch: vehicle %i, company %i, unit number %i\n", v->index, (int)v->owner, v->unitnumber);
}
} break;