diff options
author | Camron <camronquadri@gmail.com> | 2021-09-04 17:42:54 -0400 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-11-10 20:15:09 -0800 |
commit | 5137f96bd64783d816f4fe9477fcf7f278d32488 (patch) | |
tree | b9b3d2f94a634011173f1554cc7bb2744b7a5e7f /Userland/Games/Solitaire/Game.cpp | |
parent | 68b5e6c565395b592b2e93462983163cb786fc11 (diff) | |
download | serenity-5137f96bd64783d816f4fe9477fcf7f278d32488.zip |
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>
Diffstat (limited to 'Userland/Games/Solitaire/Game.cpp')
-rw-r--r-- | Userland/Games/Solitaire/Game.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Games/Solitaire/Game.cpp b/Userland/Games/Solitaire/Game.cpp index d9cf5404d5..7bccaa782d 100644 --- a/Userland/Games/Solitaire/Game.cpp +++ b/Userland/Games/Solitaire/Game.cpp @@ -441,7 +441,7 @@ void Game::draw_cards() NonnullRefPtrVector<Card> cards_drawn; for (size_t i = 0; (i < cards_to_draw) && !stock.is_empty(); ++i) { auto card = stock.pop(); - cards_drawn.append(card); + cards_drawn.prepend(card); play.push(move(card)); } |