mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
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
This commit is contained in:
parent
3ee092cd0c
commit
198a4e2a3c
Notes:
sideshowbarker
2024-07-19 17:27:31 +09:00
Author: https://github.com/metmo 🔰 Commit: https://github.com/SerenityOS/serenity/commit/198a4e2a3c3 Pull-request: https://github.com/SerenityOS/serenity/pull/7254
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue