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)
|
||||
|
|
|
@ -19,4 +19,4 @@
|
|||
***************************************************************************/
|
||||
|
||||
static const int PROTOCOL_VERSION = 1;
|
||||
static const char *VERSION_STRING = "Servatrice 0.20090925";
|
||||
static const char *VERSION_STRING = "Servatrice 0.20090928";
|
||||
|
|
Loading…
Reference in a new issue