소스 검색

Spider: Fix crash when completing a deck

This resolves a regression caused by
8a48246ed1a93983668a25f5b9b0af0e745e3f04.
Jamie Mansfield 2 년 전
부모
커밋
926c16f0ce
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Userland/Games/Spider/Game.cpp

+ 1 - 1
Userland/Games/Spider/Game.cpp

@@ -145,7 +145,7 @@ void Game::detect_full_stacks()
         uint8_t last_value;
         Color color;
         for (size_t i = current_pile.stack().size(); i > 0; i--) {
-            auto& card = current_pile.stack().at(i - 1);
+            auto card = current_pile.stack().at(i - 1);
             if (card->is_upside_down())
                 break;