forked from 0ad/0ad
fix targetPosition != null check
This was SVN commit r14501.
This commit is contained in:
parent
3d5f661447
commit
1e33dd1d5e
@ -381,6 +381,7 @@ var UnitFsmSpec = {
|
||||
{
|
||||
this.StopMoving();
|
||||
this.FinishOrder();
|
||||
return;
|
||||
}
|
||||
var pos = cmpTargetPosition.GetPosition2D();
|
||||
if (this.MoveToPointRange(pos.x, pos.y, distance, -1))
|
||||
|
Loading…
Reference in New Issue
Block a user