summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-04 13:04:19 +0000
committerrubidium <rubidium@openttd.org>2010-12-04 13:04:19 +0000
commite5b456f289b5ca97199d846fe71b9bdfd6c6dfa5 (patch)
tree3b74d703a62edf0be4e668854c9212514894183b /src/saveload
parenta0fb4c8a134d609683bea556b54e9fc62133ba41 (diff)
downloadopenttd-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.cpp2
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();
}
}