Fix NRE in SquadManagerBotModule.
This commit is contained in:
@@ -116,7 +116,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
World = self.World;
|
World = self.World;
|
||||||
Player = self.Owner;
|
Player = self.Owner;
|
||||||
|
|
||||||
unitCannotBeOrdered = a => a.Owner != Player || a.IsDead || !a.IsInWorld;
|
unitCannotBeOrdered = a => a == null || a.Owner != Player || a.IsDead || !a.IsInWorld;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsEnemyUnit(Actor a)
|
public bool IsEnemyUnit(Actor a)
|
||||||
|
|||||||
Reference in New Issue
Block a user