Fixed debug compile ('may be uninitialized')
This commit is contained in:
parent
a0369d30a6
commit
ee26fe6bc7
1 changed files with 1 additions and 0 deletions
|
@ -501,6 +501,7 @@ local int AStarFindPath(Unit* unit,int* pxd,int* pyd)
|
|||
x=unit->X;
|
||||
y=unit->Y;
|
||||
DebugLevel3("%d %d %d %d\n",x,y,ex,ey);
|
||||
IfDebug(i = 0);
|
||||
while(ex != x || ey !=y) {
|
||||
eo=ex*TheMap.Width+ey;
|
||||
i=AStarMatrix[eo].Direction;
|
||||
|
|
Loading…
Add table
Reference in a new issue