diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndWandmaker.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndWandmaker.java index d13fcc5be..72613641f 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndWandmaker.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndWandmaker.java @@ -77,7 +77,7 @@ public class WndWandmaker extends Window { ItemButton btnWand1 = new ItemButton(){ @Override protected void onClick() { - if (Dungeon.hero.belongings.contains(questItem)) { + if (Dungeon.hero.belongings.contains(questItem) && item() != null) { GameScene.show(new RewardWindow(item())); } else { hide(); @@ -91,7 +91,7 @@ public class WndWandmaker extends Window { ItemButton btnWand2 = new ItemButton(){ @Override protected void onClick() { - if (Dungeon.hero.belongings.contains(questItem)) { + if (Dungeon.hero.belongings.contains(questItem) && item() != null) { GameScene.show(new RewardWindow(item())); } else { hide();