ensure load saved games checks if new attribute exists
This commit is contained in:
parent
4a70fd09e2
commit
b7a7d3bc4a
|
@ -6654,7 +6654,9 @@ void Game::loadGame(string name,Program *programPtr,bool isMasterserverMode,cons
|
|||
|
||||
newGame->timeDisplay = gameNode->getAttribute("timeDisplay")->getIntValue() != 0;
|
||||
|
||||
newGame->disableSpeedChange = gameNode->getAttribute("disableSpeedChange")->getIntValue() != 0;
|
||||
if(gameNode->hasAttribute("disableSpeedChange") == true) {
|
||||
newGame->disableSpeedChange = gameNode->getAttribute("disableSpeedChange")->getIntValue() != 0;
|
||||
}
|
||||
|
||||
//bool gameStarted;
|
||||
//gameNode->addAttribute("gameStarted",intToStr(gameStarted), mapTagReplacements);
|
||||
|
|
Loading…
Reference in New Issue