From 22aeec1218a3f833e275adc7fb564c9869787531 Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Thu, 5 Aug 2021 11:11:08 +0100 Subject: [PATCH] Spider: Clear selection when starting new game Fixes #9217. --- Userland/Games/Spider/Game.cpp | 3 +++ 1 file changed, 3 insertions(+) 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();