diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index e97fabf4..5bd3a044 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -504,10 +504,6 @@ void Game::loadcustomlevelstats(void) customlevelstats.clear(); - // Old system - std::vector customlevelnames; - std::vector customlevelscores; - tinyxml2::XMLElement* pElem; tinyxml2::XMLElement* firstElement; @@ -553,6 +549,9 @@ void Game::loadcustomlevelstats(void) // Since we're still here, we must be on the old system + std::vector customlevelnames; + std::vector customlevelscores; + for (pElem = firstElement; pElem; pElem=pElem->NextSiblingElement()) { const char* pKey = pElem->Value();