Check for EnterTunnel FrozenActor.Actor is null

This commit is contained in:
rob-v
2017-06-15 11:32:51 +02:00
committed by Paul Chote
parent 6df7f18a3b
commit 78bf530a4e

View File

@@ -96,7 +96,7 @@ namespace OpenRA.Mods.Common.Traits
public override bool CanTargetActor(Actor self, Actor target, TargetModifiers modifiers, ref string cursor)
{
if (target.IsDead)
if (target == null || target.IsDead)
return false;
var tunnel = target.TraitOrDefault<TunnelEntrance>();