summaryrefslogtreecommitdiff
path: root/Userland/Games/Solitaire/Game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Games/Solitaire/Game.cpp')
-rw-r--r--Userland/Games/Solitaire/Game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Games/Solitaire/Game.cpp b/Userland/Games/Solitaire/Game.cpp
index 7aab23456e..40868ec465 100644
--- a/Userland/Games/Solitaire/Game.cpp
+++ b/Userland/Games/Solitaire/Game.cpp
@@ -80,7 +80,7 @@ void Game::start_game_over_animation()
start_timer(s_timer_interval_ms);
if (on_game_end)
- on_game_end();
+ on_game_end(GameOverReason::Victory, m_score);
}
void Game::stop_game_over_animation()
@@ -103,7 +103,7 @@ void Game::setup(Mode mode)
m_mode = mode;
if (on_game_end)
- on_game_end();
+ on_game_end(GameOverReason::NewGame, m_score);
for (auto& stack : m_stacks)
stack.clear();