mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
Bounds check data sent by QAction()
Took 54 minutes
This commit is contained in:
parent
9b14d9577b
commit
a2d4594d4f
1 changed files with 3 additions and 0 deletions
|
|
@ -127,6 +127,9 @@ void CardZoneLogic::refreshCardInfos()
|
|||
void CardZoneLogic::moveAllToZone()
|
||||
{
|
||||
QList<QVariant> data = static_cast<QAction *>(sender())->data().toList();
|
||||
if (data.length() < 2) {
|
||||
return;
|
||||
}
|
||||
QString targetZone = data[0].toString();
|
||||
int targetX = data[1].toInt();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue