Fix view bottom cards using the wrong default (#5696)

This commit is contained in:
RickyRister 2025-03-07 13:17:40 -08:00 committed by GitHub
parent ff7f31ca33
commit 1d11bb19b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1139,9 +1139,9 @@ void Player::actViewBottomCards()
bool ok; bool ok;
int number = int number =
QInputDialog::getInt(game, tr("View bottom cards of library"), tr("Number of cards: (max. %1)").arg(deckSize), QInputDialog::getInt(game, tr("View bottom cards of library"), tr("Number of cards: (max. %1)").arg(deckSize),
defaultNumberTopCards, 1, deckSize, 1, &ok); defaultNumberBottomCards, 1, deckSize, 1, &ok);
if (ok) { if (ok) {
defaultNumberTopCards = number; defaultNumberBottomCards = number;
static_cast<GameScene *>(scene())->toggleZoneView(this, "deck", number, true); static_cast<GameScene *>(scene())->toggleZoneView(this, "deck", number, true);
} }
} }