diff options
Diffstat (limited to 'src/map/path.cpp')
-rw-r--r-- | src/map/path.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/path.cpp b/src/map/path.cpp index 879bba3..f7fffbe 100644 --- a/src/map/path.cpp +++ b/src/map/path.cpp @@ -23,7 +23,7 @@ struct tmp_path static int calc_index(int x, int y) { - return (x + y * MAX_WALKPATH) & (MAX_WALKPATH * MAX_WALKPATH - 1); + return (x + y * MAX_WALKPATH) % (MAX_WALKPATH * MAX_WALKPATH); } /*========================================== |