From 3facc3333c3cfef4843d53f9b33055aa17978332 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 5 Dec 2024 02:34:28 +0100 Subject: [PATCH] Don't shadow variable --- src/gamestate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gamestate.cpp b/src/gamestate.cpp index ad549dd..a64d39c 100644 --- a/src/gamestate.cpp +++ b/src/gamestate.cpp @@ -327,8 +327,8 @@ bool GameState::autoMoveColumnCard(int columnId, int cardIndex) qDebug() << "Attempting auto-move of column " << columnId << " card range " << cardIndex << " to " << columnStack.size() - 1; QList selectedCards; for (int i = cardIndex; i < columnStack.size(); ++i) { - ColumnSlot* col = columnStack[i]; - selectedCards.append(col->card()); + ColumnSlot* curCol = columnStack[i]; + selectedCards.append(curCol->card()); } if (!tryAutoMoveMultipleCards(selectedCards, cardIndex)) {