diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-01-20 13:33:30 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-22 21:31:36 +0000 |
commit | ccabc8e9309bef79320ec61a98951c7003e24584 (patch) | |
tree | bb2bea323725ca910d9358ddb98dc6764d962b6c /Userland/Games/Spider | |
parent | c7c4d70f6ed9076745daf61236fdbc34cf4f2fce (diff) | |
download | serenity-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/Spider')
-rw-r--r-- | Userland/Games/Spider/Game.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Games/Spider/Game.cpp b/Userland/Games/Spider/Game.cpp index 7229e65ea9..a79b929890 100644 --- a/Userland/Games/Spider/Game.cpp +++ b/Userland/Games/Spider/Game.cpp @@ -272,7 +272,7 @@ void Game::mousedown_event(GUI::MouseEvent& event) update(top_card.rect()); } } else if (!is_moving_cards()) { - pick_up_cards_from_stack(to_check, click_location, Cards::CardStack::MovementRule::Same); + pick_up_cards_from_stack(to_check, click_location, Cards::CardStack::MovementRule::Same).release_value_but_fixme_should_propagate_errors(); m_mouse_down_location = click_location; // When the user wants to automatically move cards, do not go into the drag mode. if (event.button() != GUI::MouseButton::Secondary) |