Ignore the types of an exit when the production type is null or empty
This commit is contained in:
committed by
Matthias Mailänder
parent
41657dd291
commit
a5bc841355
@@ -111,7 +111,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
if (ShouldLandAtBuilding(self, dest))
|
||||
{
|
||||
var exit = dest.FirstExitOrDefault(null);
|
||||
var exit = dest.FirstExitOrDefault();
|
||||
var offset = exit != null ? exit.Info.SpawnOffset : WVec.Zero;
|
||||
if (aircraft.Info.TurnToDock || !aircraft.Info.VTOL)
|
||||
facing = aircraft.Info.InitialFacing;
|
||||
|
||||
Reference in New Issue
Block a user