Check for lastPos existence in Combat-Approaching-MovementUpdate [fix 5568bd4c16
]
Fixes 5568bd4c16
`lastPos` isn't guaranteed to exist, though formations are most likely
required to make the situation happen in common gameplay.
Reviewed By: Freagarach
Differential Revision: https://code.wildfiregames.com/D2960
This was SVN commit r23970.
This commit is contained in:
parent
dbca1ed99b
commit
78d973c11e
@ -1899,7 +1899,7 @@ UnitAI.prototype.UnitFsmSpec = {
|
||||
this.FinishOrder();
|
||||
return;
|
||||
}
|
||||
else if (!this.order.data.force)
|
||||
else if (!this.order.data.force || !this.order.data.lastPos)
|
||||
{
|
||||
this.SetNextState("COMBAT.FINDINGNEWTARGET");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user