Commit bf1ae3a3 authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

crash fix

parent adb4edc2
...@@ -58,7 +58,7 @@ Card *PlayerZone::getCard(int id, bool remove, int *position) ...@@ -58,7 +58,7 @@ Card *PlayerZone::getCard(int id, bool remove, int *position)
} }
return NULL; return NULL;
} else { } else {
if (id >= cards.size()) if ((id >= cards.size()) || (id < 0))
return NULL; return NULL;
Card *tmp = cards[id]; Card *tmp = cards[id];
if (remove) if (remove)
......
...@@ -19,4 +19,4 @@ ...@@ -19,4 +19,4 @@
***************************************************************************/ ***************************************************************************/
static const int PROTOCOL_VERSION = 1; static const int PROTOCOL_VERSION = 1;
static const char *VERSION_STRING = "Servatrice 0.20090925"; static const char *VERSION_STRING = "Servatrice 0.20090928";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment