diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/effects/Wound.java b/src/com/shatteredpixel/shatteredpixeldungeon/effects/Wound.java index dcc6cb3ef..6f1f98397 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/effects/Wound.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/effects/Wound.java @@ -63,10 +63,12 @@ public class Wound extends Image { } public static void hit( Char ch, float angle ) { - Wound w = (Wound)ch.sprite.parent.recycle( Wound.class ); - ch.sprite.parent.bringToFront( w ); - w.reset( ch.pos ); - w.angle = angle; + if (ch.sprite.parent != null) { + Wound w = (Wound) ch.sprite.parent.recycle(Wound.class); + ch.sprite.parent.bringToFront(w); + w.reset(ch.pos); + w.angle = angle; + } } public static void hit( int pos ) {