mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-05 01:27:38 -08:00
crash fix
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user