mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 20:38:03 -05:00
Fix view bottom cards using the wrong default (#5696)
This commit is contained in:
@@ -1139,9 +1139,9 @@ void Player::actViewBottomCards()
|
||||
bool ok;
|
||||
int number =
|
||||
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) {
|
||||
defaultNumberTopCards = number;
|
||||
defaultNumberBottomCards = number;
|
||||
static_cast<GameScene *>(scene())->toggleZoneView(this, "deck", number, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user