diff options
Diffstat (limited to 'src/map/path.c')
-rw-r--r-- | src/map/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/path.c b/src/map/path.c index e2e3ae44b..bbbb99a08 100644 --- a/src/map/path.c +++ b/src/map/path.c @@ -345,7 +345,7 @@ bool path_search(struct walkpath_data *wpd,int m,int x0,int y0,int x1,int y1,int xs = md->xs-1; // あらかじめ1減算しておく ys = md->ys-1; - while(1) + for(;;) { int e=0,f=0,dist,cost,dc[4]={0,0,0,0}; |