mirror of
https://github.com/glest/glest-source.git
synced 2025-08-17 21:51:17 +02:00
ensure load saved games checks if new attribute exists
This commit is contained in:
@@ -6654,7 +6654,9 @@ void Game::loadGame(string name,Program *programPtr,bool isMasterserverMode,cons
|
||||
|
||||
newGame->timeDisplay = gameNode->getAttribute("timeDisplay")->getIntValue() != 0;
|
||||
|
||||
if(gameNode->hasAttribute("disableSpeedChange") == true) {
|
||||
newGame->disableSpeedChange = gameNode->getAttribute("disableSpeedChange")->getIntValue() != 0;
|
||||
}
|
||||
|
||||
//bool gameStarted;
|
||||
//gameNode->addAttribute("gameStarted",intToStr(gameStarted), mapTagReplacements);
|
||||
|
Reference in New Issue
Block a user