Fix aircraft not taking off properly

This commit is contained in:
abcdefg30
2020-03-07 11:29:40 +01:00
committed by reaperrr
parent ea6c840343
commit 0d0e7eb179

View File

@@ -84,7 +84,7 @@ namespace OpenRA.Mods.Common.Traits
{
if (reservedForAircraft.GetActorBelow() == self)
{
if (rallyPoint != null)
if (rallyPoint != null && rallyPoint.Path.Count > 0)
foreach (var cell in rallyPoint.Path)
reservedFor.QueueActivity(reservedForAircraft.MoveTo(cell, 1, targetLineColor: Color.Green));
else