mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 11:38:49 -07:00
Fix view bottom cards using the wrong default (#5696)
This commit is contained in:
parent
ff7f31ca33
commit
1d11bb19b8
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue