summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorCamron <camronquadri@gmail.com>2021-09-04 17:42:54 -0400
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-11-10 20:15:09 -0800
commit5137f96bd64783d816f4fe9477fcf7f278d32488 (patch)
treeb9b3d2f94a634011173f1554cc7bb2744b7a5e7f /Userland
parent68b5e6c565395b592b2e93462983163cb786fc11 (diff)
downloadserenity-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')
-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 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));
}