(svn r22915) -Fix (r22743): TTO savegames with any aircraft not in an hangar caused crashes during load
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user