v2.2.0: added a check if the game closed while selecting smith rewards

This commit is contained in:
Evan Debenham
2023-10-12 14:43:37 -04:00
parent 9d11fb8069
commit c49ad0fa12

View File

@@ -207,7 +207,12 @@ public class Blacksmith extends NPC {
Game.runOnRenderThread(new Callback() {
@Override
public void call() {
GameScene.show( new WndBlacksmith( Blacksmith.this, Dungeon.hero ) );
//in case game was closed during smith reward selection
if (Quest.smithRewards != null && Quest.smiths > 0){
GameScene.show( new WndBlacksmith.WndSmith( Blacksmith.this, Dungeon.hero ) );
} else {
GameScene.show(new WndBlacksmith(Blacksmith.this, Dungeon.hero));
}
}
});