summaryrefslogtreecommitdiff
path: root/Userland/Games
diff options
context:
space:
mode:
authorJamie Mansfield <jmansfield@cadixdev.org>2021-08-05 11:11:08 +0100
committerGunnar Beutner <gunnar@beutner.name>2021-08-05 12:52:33 +0200
commit22aeec1218a3f833e275adc7fb564c9869787531 (patch)
treec8fee9c3ee18841ecca944bbe4f4125b8eef4050 /Userland/Games
parent64ca51265dcb4caf8bdd9051b3e63cf5b8e7518e (diff)
downloadserenity-22aeec1218a3f833e275adc7fb564c9869787531.zip
Spider: Clear selection when starting new game
Fixes #9217.
Diffstat (limited to 'Userland/Games')
-rw-r--r--Userland/Games/Spider/Game.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Games/Spider/Game.cpp b/Userland/Games/Spider/Game.cpp
index 4a0a3997ae..52d4756008 100644
--- a/Userland/Games/Spider/Game.cpp
+++ b/Userland/Games/Spider/Game.cpp
@@ -75,6 +75,9 @@ void Game::setup(Mode mode)
while (!deck.is_empty())
m_new_deck.append(deck.take(get_random_uniform(deck.size())));
+ m_focused_stack = nullptr;
+ m_focused_cards.clear();
+
m_new_game_animation = true;
start_timer(s_timer_interval_ms);
update();