Don't shadow variable

This commit is contained in:
ItsDrike 2024-12-05 02:34:28 +01:00
parent 30e935b7ce
commit 3facc3333c
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -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<PlayingCard*> 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)) {