mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 17:32:15 -07:00
remove redundant loop
This commit is contained in:
parent
f826525d50
commit
4cd4e0837e
1 changed files with 0 additions and 5 deletions
|
|
@ -3457,13 +3457,8 @@ void Player::actPlay()
|
|||
|
||||
void Player::actHide()
|
||||
{
|
||||
QList<CardItem *> selectedCards;
|
||||
for (const auto &item : scene()->selectedItems()) {
|
||||
auto *card = static_cast<CardItem *>(item);
|
||||
selectedCards.append(card);
|
||||
}
|
||||
|
||||
for (auto &card : selectedCards) {
|
||||
if (card && isUnwritableRevealZone(card->getZone())) {
|
||||
card->getZone()->removeCard(card);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue