diff options
author | rubidium <rubidium@openttd.org> | 2011-01-26 17:31:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-01-26 17:31:07 +0000 |
commit | b11f1bd4ed68fc0d031429df2925b87ed6baceb3 (patch) | |
tree | 5bb149c0bafdbb9a3987237fa5f1d659f92268cf /src/saveload | |
parent | 12b64a12b06f93d81a433cb311dfd1228d155e98 (diff) | |
download | openttd-b11f1bd4ed68fc0d031429df2925b87ed6baceb3.tar.xz |
(svn r21911) -Codechange: move tcache.last_speed to gcache.last_speed and make SetLastSpeed a function of GroundVehicle
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/vehicle_sl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp index d93b74989..32b692f1d 100644 --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -336,7 +336,7 @@ void AfterLoadVehicles(bool part_of_load) case VEH_TRAIN: { Train *t = Train::From(v); if (t->IsFrontEngine() || t->IsFreeWagon()) { - t->tcache.last_speed = t->cur_speed; // update displayed train speed + t->gcache.last_speed = t->cur_speed; // update displayed train speed t->ConsistChanged(false); } break; |