diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/FogOfWar.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/FogOfWar.java index a677c3ab7..95e6e7dde 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/FogOfWar.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/FogOfWar.java @@ -104,7 +104,7 @@ public class FogOfWar extends Image { int cell = (pWidth - 1) * i + updating.left; fog.pixels.position((width2) * i + updating.left); for (int j=updating.left; j < updating.right; j++) { - if (cell < pWidth || cell >= Dungeon.level.length()) { + if (cell < pWidth || cell >= Dungeon.level.length() || j == 0 || j == pWidth-1) { fog.pixels.put(INVISIBLE); } else if (visible[cell] && visible[cell - (pWidth - 1)] &&