1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:57:35 +00:00

Spider: Clear selection when starting new game

Fixes #9217.
This commit is contained in:
Jamie Mansfield 2021-08-05 11:11:08 +01:00 committed by Gunnar Beutner
parent 64ca51265d
commit 22aeec1218

View file

@ -75,6 +75,9 @@ void Game::setup(Mode mode)
while (!deck.is_empty()) while (!deck.is_empty())
m_new_deck.append(deck.take(get_random_uniform(deck.size()))); m_new_deck.append(deck.take(get_random_uniform(deck.size())));
m_focused_stack = nullptr;
m_focused_cards.clear();
m_new_game_animation = true; m_new_game_animation = true;
start_timer(s_timer_interval_ms); start_timer(s_timer_interval_ms);
update(); update();