(svn r22915) -Fix (r22743): TTO savegames with any aircraft not in an hangar caused crashes during load

This commit is contained in:
yexo
2011-09-09 21:27:57 +00:00
parent b7722dbe86
commit 561d6503be
3 changed files with 10 additions and 7 deletions

View File

@@ -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