Added ResetPath call.

This commit is contained in:
johns 2001-02-21 20:31:36 +00:00
parent 6f6d160a5d
commit 63b195d855

View file

@ -503,6 +503,7 @@ local int AStarFindPath(Unit* unit,int* pxd,int* pyd)
unit->Command.Data.Move.Goal=0;
unit->Command.Data.Move.DX=ex;
unit->Command.Data.Move.DY=ey;
ResetPath(unit->Command);
}
// now we need to backtrack
path_length=0;