summaryrefslogtreecommitdiff
path: root/Userland/Games/Solitaire
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-01-20 13:33:30 +0000
committerLinus Groh <mail@linusgroh.de>2023-01-22 21:31:36 +0000
commitccabc8e9309bef79320ec61a98951c7003e24584 (patch)
treebb2bea323725ca910d9358ddb98dc6764d962b6c /Userland/Games/Solitaire
parentc7c4d70f6ed9076745daf61236fdbc34cf4f2fce (diff)
downloadserenity-ccabc8e9309bef79320ec61a98951c7003e24584.zip
LibCards+Games: Return ErrorOr from CardStack::add_all_grabbed_cards()
...and CardGame::pick_up_cards_from_stack() which is its only caller.
Diffstat (limited to 'Userland/Games/Solitaire')
-rw-r--r--Userland/Games/Solitaire/Game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Games/Solitaire/Game.cpp b/Userland/Games/Solitaire/Game.cpp
index 8fbb91e3af..adc2f0430c 100644
--- a/Userland/Games/Solitaire/Game.cpp
+++ b/Userland/Games/Solitaire/Game.cpp
@@ -266,7 +266,7 @@ void Game::mousedown_event(GUI::MouseEvent& event)
if (event.button() == GUI::MouseButton::Secondary) {
preview_card(to_check, click_location);
} else {
- pick_up_cards_from_stack(to_check, click_location, Cards::CardStack::MovementRule::Alternating);
+ pick_up_cards_from_stack(to_check, click_location, Cards::CardStack::MovementRule::Alternating).release_value_but_fixme_should_propagate_errors();
m_mouse_down_location = click_location;
m_mouse_down = true;
}