Fix NRE in SquadManagerBotModule.

This commit is contained in:
Paul Chote
2019-08-23 23:55:33 +01:00
committed by abcdefg30
parent d5f42c0628
commit 8b0f2e1462

View File

@@ -116,7 +116,7 @@ namespace OpenRA.Mods.Common.Traits
World = self.World;
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)