mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-21 23:00:24 -08:00
bug fix
This commit is contained in:
@@ -119,8 +119,8 @@ CardItem *CardZone::takeCard(int position, int cardId, const QString &cardName,
|
|||||||
}
|
}
|
||||||
if (position == -1)
|
if (position == -1)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
} else if (position >= cards.size())
|
||||||
Q_ASSERT(position < cards.size());
|
return 0;
|
||||||
|
|
||||||
CardItem *c = cards.takeAt(position);
|
CardItem *c = cards.takeAt(position);
|
||||||
|
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ Player::Player(const QString &_name, int _id, bool _local, Client *_client, TabG
|
|||||||
} else {
|
} else {
|
||||||
countersMenu = 0;
|
countersMenu = 0;
|
||||||
sbMenu = 0;
|
sbMenu = 0;
|
||||||
|
cardMenu = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
retranslateUi();
|
retranslateUi();
|
||||||
|
|||||||
Reference in New Issue
Block a user