diff options
-rw-r--r-- | src/map.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp index 5723d5ec8..8225aded1 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1443,7 +1443,8 @@ Path Map::findPath(int startX, int startY, int destX, int destY, // corner. if (dx != 0 && dy != 0) { - MetaTile *t1 = &mMetaTiles[curr.x + (curr.y + dy) * mWidth]; + MetaTile *t1 = &mMetaTiles[curr.x + + (curr.y + dy) * mWidth]; MetaTile *t2 = &mMetaTiles[curr.x + dx + curWidth]; //+++ here need check block must depend on player abilities. |