(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.

This commit is contained in:
terkhen 2010-11-09 10:56:02 +00:00
parent b1765482d2
commit c6ad6f52a9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}