summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-11-09 10:56:02 +0000
committerterkhen <terkhen@openttd.org>2010-11-09 10:56:02 +0000
commitc6ad6f52a9730f29dd48b8610c4c62d981886dfb (patch)
treebfa4af3fcea0dd284c1beb06a901cc09c858b8ba
parentb1765482d25751f216bcb01c61ed07d290e4eb26 (diff)
downloadopenttd-c6ad6f52a9730f29dd48b8610c4c62d981886dfb.tar.xz
(svn r21120) -Fix (r21096): Use the engine max speed value instead of the savegame value, as the latter could be stored in old units in old savegames.
-rw-r--r--src/aircraft_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index 066fe6a8c..c66d47881 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -544,7 +544,7 @@ void UpdateAircraftCache(Aircraft *v)
v->vcache.cached_max_speed = max_speed;
} else {
/* Use the default max speed of the vehicle. */
- v->vcache.cached_max_speed = v->max_speed;
+ v->vcache.cached_max_speed = AircraftVehInfo(v->engine_type)->max_speed;
}
}