summaryrefslogtreecommitdiff
path: root/src/map/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/path.c')
-rw-r--r--src/map/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/path.c b/src/map/path.c
index d79238b87..471e51e71 100644
--- a/src/map/path.c
+++ b/src/map/path.c
@@ -380,7 +380,7 @@ int path_search_real(struct walkpath_data *wpd,int m,int x0,int y0,int x1,int y1
xs = md->xs-1; // あらかじめ1減算しておく
ys = md->ys-1;
while(1){
- int e=0,f=0,dist,cost,dc[4];
+ int e=0,f=0,dist,cost,dc[4]={0,0,0,0};
if(heap[0]==0)
return -1;