fix targetPosition != null check

This was SVN commit r14501.
This commit is contained in:
sanderd17 2014-01-04 13:15:44 +00:00
parent 3d5f661447
commit 1e33dd1d5e

View File

@ -381,6 +381,7 @@ var UnitFsmSpec = {
{
this.StopMoving();
this.FinishOrder();
return;
}
var pos = cmpTargetPosition.GetPosition2D();
if (this.MoveToPointRange(pos.x, pos.y, distance, -1))