Fix a crash when the target is destroyed.
This commit is contained in:
committed by
Pavel Penev
parent
ccb1bd7a74
commit
0d97f3374c
@@ -100,6 +100,7 @@ namespace OpenRA.Mods.Common.Traits.BotModules.Squads
|
||||
var valid =
|
||||
TargetActor != null &&
|
||||
TargetActor.IsInWorld &&
|
||||
!TargetActor.IsDead &&
|
||||
Units.Any(Target.IsValidFor) &&
|
||||
!TargetActor.Info.HasTraitInfo<HuskInfo>();
|
||||
if (!valid)
|
||||
|
||||
Reference in New Issue
Block a user