diff options
author | yexo <yexo@openttd.org> | 2011-09-09 21:27:57 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-09-09 21:27:57 +0000 |
commit | bc3b725812bc5910b89426d60df66b371026f2b3 (patch) | |
tree | b3f26fd4a2870060b35a42b0f065e93fb32649cf /src/saveload | |
parent | a8889fd0e03d7b87a8bf61a259a926178e00e5e2 (diff) | |
download | openttd-bc3b725812bc5910b89426d60df66b371026f2b3.tar.xz |
(svn r22915) -Fix (r22743): TTO savegames with any aircraft not in an hangar caused crashes during load
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 ff738c7e2..14827eb7b 100644 --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -178,7 +178,7 @@ void UpdateOldAircraft() continue; } - AircraftLeaveHangar(a); // make airplane visible if it was in a depot for example + AircraftLeaveHangar(a, a->direction); // make airplane visible if it was in a depot for example a->vehstatus &= ~VS_STOPPED; // make airplane moving UpdateAircraftCache(a); a->cur_speed = a->vcache.cached_max_speed; // so aircraft don't have zero speed while in air |