diff --git a/servatrice/src/playerzone.cpp b/servatrice/src/playerzone.cpp index abefe617..eb20f231 100644 --- a/servatrice/src/playerzone.cpp +++ b/servatrice/src/playerzone.cpp @@ -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) diff --git a/servatrice/src/version.h b/servatrice/src/version.h index 5aa171ba..2c3cba09 100644 --- a/servatrice/src/version.h +++ b/servatrice/src/version.h @@ -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";