Jeck - Small fix to GameOptions theme/profile loading.

This commit is contained in:
wagic.jeck
2009-08-29 05:34:56 +00:00
parent cd5acb8125
commit b13593c958
+2
View File
@@ -183,6 +183,7 @@ GameSettings::GameSettings()
temp = "Default"; temp = "Default";
(*globalOptions)[Options::ACTIVE_PROFILE.substr(2)].str = temp; (*globalOptions)[Options::ACTIVE_PROFILE.substr(2)].str = temp;
themeOptions = NULL;
profileOptions = NULL; profileOptions = NULL;
checkProfile(); checkProfile();
} }
@@ -293,6 +294,7 @@ void GameSettings::checkProfile(){
sprintf(buf,RESPATH"/themes/%s/metrics.txt",temp.c_str()); sprintf(buf,RESPATH"/themes/%s/metrics.txt",temp.c_str());
} }
SAFE_DELETE(themeOptions);
themeOptions = NEW GameOptions(buf); themeOptions = NEW GameOptions(buf);
//Validation of collection, etc, only happens if the game is up. //Validation of collection, etc, only happens if the game is up.