Added ResetPath call.
This commit is contained in:
parent
6f6d160a5d
commit
63b195d855
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue