diff --git a/core/src/main/java/com/mygdx/pirategame/save/GameScreen.java b/core/src/main/java/com/mygdx/pirategame/save/GameScreen.java index 83e1d630..511bc6d8 100644 --- a/core/src/main/java/com/mygdx/pirategame/save/GameScreen.java +++ b/core/src/main/java/com/mygdx/pirategame/save/GameScreen.java @@ -468,6 +468,7 @@ public void handleInput(float dt) { if (Gdx.input.isKeyJustPressed(Input.Keys.E)) { if (gameStatus == GOLD_SHOP) { closeShop(); + gameStatus = GAME_RUNNING; } else if (gameStatus == GAME_RUNNING) { openShop(); } @@ -919,6 +920,7 @@ public void closeShop() { goldShop.hide(); table.setVisible(true); pauseTable.setVisible(false); + goldShop = null; resume(); }