From d450114d2d16d259eacbb25dedaa5209edf8a82c Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 28 May 2015 15:40:25 -0400 Subject: [PATCH] v0.3.0b: fixed a crash bug with the sniper's mark --- .../shatteredpixeldungeon/actors/buffs/SnipersMark.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/SnipersMark.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/SnipersMark.java index 1c409023e..a1ad7be5c 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/SnipersMark.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/SnipersMark.java @@ -53,7 +53,8 @@ public class SnipersMark extends FlavourBuff { @Override public String desc() { - return "The sniper is honed in on the nearby " + ((Char)Actor.findById(object)).name + ", " + + Char ch = (Char)Actor.findById(object); + return "The sniper is honed in " + ((ch == null) ? "on a lost target" : "on the nearby" + ch.name ) + ", " + "gaining increased attack speed and armor penetration while attacking it.\n" + "\n" + "The sniper will remain honed in until she switches targets, stops attacking, or the target dies.";