From 5137f96bd64783d816f4fe9477fcf7f278d32488 Mon Sep 17 00:00:00 2001 From: Camron Date: Sat, 4 Sep 2021 17:42:54 -0400 Subject: [PATCH] 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 --- Userland/Games/Solitaire/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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)); }