From ee26fe6bc741b34ebeffe1178b79a26cc58eda70 Mon Sep 17 00:00:00 2001 From: ariclone <> Date: Tue, 4 Jul 2000 18:56:48 +0000 Subject: [PATCH] Fixed debug compile ('may be uninitialized') --- src/pathfinder/astar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pathfinder/astar.cpp b/src/pathfinder/astar.cpp index 2deff4746..9cc86e467 100644 --- a/src/pathfinder/astar.cpp +++ b/src/pathfinder/astar.cpp @@ -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;