Fixed debug compile ('may be uninitialized')

This commit is contained in:
ariclone 2000-07-04 18:56:48 +00:00
parent a0369d30a6
commit ee26fe6bc7

View file

@ -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;