# HG changeset patch # User rubidium # Date 2010-12-04 13:04:19 # Node ID 669adb7a8d82eda4998e19d3f1d2f0aafc659faf # Parent 0dc625dc31a5ff73e8b8cd4f5cdacaceb728edb1 (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 diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp --- 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(); } }