diff options
author | rubidium <rubidium@openttd.org> | 2010-12-04 13:04:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-04 13:04:19 +0000 |
commit | e5b456f289b5ca97199d846fe71b9bdfd6c6dfa5 (patch) | |
tree | 3b74d703a62edf0be4e668854c9212514894183b /src/saveload | |
parent | a0fb4c8a134d609683bea556b54e9fc62133ba41 (diff) | |
download | openttd-e5b456f289b5ca97199d846fe71b9bdfd6c6dfa5.tar.xz |
(svn r21382) -Fix (r21153) [FS#4290]: the road vehicle's frame wasn't properly set upon savegame conversion *if* the vehicle would be hidden, but isn't going to be hidden anymore after the conversion
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/afterload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 8be8e2861..6e95f5a90 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -2370,7 +2370,7 @@ bool AfterLoadGame() switch (v->type) { case VEH_TRAIN: Train::From(v)->track = DiagDirToDiagTrackBits(vdir); break; - case VEH_ROAD: RoadVehicle::From(v)->state = DiagDirToDiagTrackdir(vdir); break; + case VEH_ROAD: RoadVehicle::From(v)->state = DiagDirToDiagTrackdir(vdir); RoadVehicle::From(v)->frame = frame; break; default: NOT_REACHED(); } } |