Don't shadow variable
This commit is contained in:
parent
30e935b7ce
commit
3facc3333c
|
@ -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;
|
qDebug() << "Attempting auto-move of column " << columnId << " card range " << cardIndex << " to " << columnStack.size() - 1;
|
||||||
QList<PlayingCard*> selectedCards;
|
QList<PlayingCard*> selectedCards;
|
||||||
for (int i = cardIndex; i < columnStack.size(); ++i) {
|
for (int i = cardIndex; i < columnStack.size(); ++i) {
|
||||||
ColumnSlot* col = columnStack[i];
|
ColumnSlot* curCol = columnStack[i];
|
||||||
selectedCards.append(col->card());
|
selectedCards.append(curCol->card());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!tryAutoMoveMultipleCards(selectedCards, cardIndex)) {
|
if (!tryAutoMoveMultipleCards(selectedCards, cardIndex)) {
|
||||||
|
|
Loading…
Reference in a new issue