mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
Solitaire: Fix 3 card draw from reversing after an undo
Solitaire: Fix 3 card draw from reversing after an undo Co-Authored-By: Tim Flynn <trflynn89@pm.me>
This commit is contained in:
parent
68b5e6c565
commit
5137f96bd6
1 changed files with 1 additions and 1 deletions
|
@ -441,7 +441,7 @@ void Game::draw_cards()
|
||||||
NonnullRefPtrVector<Card> cards_drawn;
|
NonnullRefPtrVector<Card> cards_drawn;
|
||||||
for (size_t i = 0; (i < cards_to_draw) && !stock.is_empty(); ++i) {
|
for (size_t i = 0; (i < cards_to_draw) && !stock.is_empty(); ++i) {
|
||||||
auto card = stock.pop();
|
auto card = stock.pop();
|
||||||
cards_drawn.append(card);
|
cards_drawn.prepend(card);
|
||||||
play.push(move(card));
|
play.push(move(card));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue