mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
crash fix
This commit is contained in:
parent
adb4edc256
commit
bf1ae3a36b
2 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ Card *PlayerZone::getCard(int id, bool remove, int *position)
|
|||
}
|
||||
return NULL;
|
||||
} else {
|
||||
if (id >= cards.size())
|
||||
if ((id >= cards.size()) || (id < 0))
|
||||
return NULL;
|
||||
Card *tmp = cards[id];
|
||||
if (remove)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue