Land activity: fix bug which causes crash in Aircraft.AddInflunce()
Fixes #21302
This commit is contained in:
@@ -131,6 +131,9 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
target = Target.FromCell(self.World, newLocation.Value);
|
target = Target.FromCell(self.World, newLocation.Value);
|
||||||
targetPosition = target.CenterPosition + offset;
|
targetPosition = target.CenterPosition + offset;
|
||||||
landingCell = self.World.Map.CellContaining(targetPosition);
|
landingCell = self.World.Map.CellContaining(targetPosition);
|
||||||
|
|
||||||
|
if ((targetPosition - pos).LengthSquared == 0)
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user