diff --git a/src/race/highscores.cpp b/src/race/highscores.cpp index 1938ca284..a317b521a 100644 --- a/src/race/highscores.cpp +++ b/src/race/highscores.cpp @@ -81,6 +81,12 @@ void Highscores::readEntry(const XMLNode &node) for(unsigned int i=0; i= HIGHSCORE_LEN) + { + Log::warn("Highscores", "Hiscore has too many entries."); + break; + } + const XMLNode *entry = node.getNode(i); entry->get("time", &m_time[i] ); entry->getAndDecode("name", &m_name[i] );