diff --git a/Source/monster.cpp b/Source/monster.cpp index 18fd4c648..0f2eb6204 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -2544,7 +2544,8 @@ void FallenAi(int i) for (int x = -rad; x <= rad; x++) { int xpos = monster.position.tile.x + x; int ypos = monster.position.tile.y + y; - if (InDungeonBounds({ x, y })) { + // BUGFIX: incorrect check of offset against limits of the dungeon (fixed) + if (InDungeonBounds({ xpos, ypos })) { int m = dMonster[xpos][ypos]; if (m <= 0) continue;