1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 05:29:11 +00:00

(svn r21097) -Codechange: Unify cached max speed for all vehicle types.

This commit is contained in:
terkhen
2010-11-06 12:53:31 +00:00
parent 78d0a1cb1a
commit c8a56f17f8
9 changed files with 29 additions and 36 deletions

View File

@@ -718,7 +718,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by
uint max_speed;
switch (v->type) {
case VEH_TRAIN:
max_speed = Train::From(v)->tcache.cached_max_speed;
max_speed = v->vcache.cached_max_speed;
break;
case VEH_AIRCRAFT: