Fix a crash in the Move activity
This commit is contained in:
committed by
Matthias Mailänder
parent
82a2148300
commit
53c02eb2b9
@@ -376,7 +376,8 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
|
|
||||||
public override IEnumerable<TargetLineNode> TargetLineNodes(Actor self)
|
public override IEnumerable<TargetLineNode> TargetLineNodes(Actor self)
|
||||||
{
|
{
|
||||||
if (targetLineColor != null)
|
// destination might be initialized with null, but will be set in a subsequent tick
|
||||||
|
if (targetLineColor != null && destination != null)
|
||||||
yield return new TargetLineNode(Target.FromCell(self.World, destination.Value), targetLineColor.Value);
|
yield return new TargetLineNode(Target.FromCell(self.World, destination.Value), targetLineColor.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user