From 095bff4c1abe89dce54136d651e49c892cfe6b99 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 23 Jul 2015 17:29:36 -0400 Subject: [PATCH] v0.3.1: added a safety check to blazing traps --- .../shatteredpixeldungeon/levels/traps/BlazingTrap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/BlazingTrap.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/BlazingTrap.java index e4bc72efa..f8c33bed9 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/BlazingTrap.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/BlazingTrap.java @@ -43,7 +43,7 @@ public class BlazingTrap extends Trap { @Override public void activate() { for (int i : Level.NEIGHBOURS9DIST2){ - if (!Level.solid[pos+i]) { + if (Level.insideMap(pos+i) && !Level.solid[pos+i]) { if (Level.pit[pos+i] || Level.water[pos+i]) GameScene.add(Blob.seed(pos + i, 1, Fire.class)); else