diff options
author | Jamie Mansfield <jmansfield@cadixdev.org> | 2021-08-05 11:11:08 +0100 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-08-05 12:52:33 +0200 |
commit | 22aeec1218a3f833e275adc7fb564c9869787531 (patch) | |
tree | c8fee9c3ee18841ecca944bbe4f4125b8eef4050 /Userland/Games | |
parent | 64ca51265dcb4caf8bdd9051b3e63cf5b8e7518e (diff) | |
download | serenity-22aeec1218a3f833e275adc7fb564c9869787531.zip |
Spider: Clear selection when starting new game
Fixes #9217.
Diffstat (limited to 'Userland/Games')
-rw-r--r-- | Userland/Games/Spider/Game.cpp | 3 |
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(); |