From 198a4e2a3c36314ffbf2478a545ca9d5a97af7c1 Mon Sep 17 00:00:00 2001 From: Marcus Nilsson Date: Tue, 18 May 2021 14:59:49 +0200 Subject: [PATCH] Solitaire: Stop timer if new game animation is running Starting a new game before the animation had finished caused a crash since it never stopped the timer before starting a new one. Fixes #7222 --- Userland/Games/Solitaire/Game.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Games/Solitaire/Game.cpp b/Userland/Games/Solitaire/Game.cpp index d7e19e659f..f38dcfc47e 100644 --- a/Userland/Games/Solitaire/Game.cpp +++ b/Userland/Games/Solitaire/Game.cpp @@ -96,6 +96,9 @@ void Game::stop_game_over_animation() void Game::setup(Mode mode) { + if (m_new_game_animation) + stop_timer(); + stop_game_over_animation(); m_mode = mode;