Fix a crash in the Move activity

This commit is contained in:
abcdefg30
2020-09-15 22:59:32 +02:00
committed by Matthias Mailänder
parent 82a2148300
commit 53c02eb2b9

View File

@@ -376,7 +376,8 @@ namespace OpenRA.Mods.Common.Activities
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);
}