1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +00:00

LibCards+Game: Return ErrorOr from CardGame::drop_cards_on_stack()

This commit is contained in:
Sam Atkins 2023-01-22 21:28:28 +00:00 committed by Linus Groh
parent 8b3a94ffbc
commit 0855e9f014
4 changed files with 7 additions and 5 deletions

View file

@ -297,7 +297,7 @@ void Game::mouseup_event(GUI::MouseEvent& event)
auto& stack = *target_stack;
remember_move_for_undo(*moving_cards_source_stack(), stack, moving_cards());
drop_cards_on_stack(stack, Cards::CardStack::MovementRule::Alternating);
drop_cards_on_stack(stack, Cards::CardStack::MovementRule::Alternating).release_value_but_fixme_should_propagate_errors();
if (moving_cards_source_stack()->type() == CardStack::Type::Play)
pop_waste_to_play_stack();