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

View File

@@ -183,6 +183,7 @@ GameSettings::GameSettings()
temp = "Default";
(*globalOptions)[Options::ACTIVE_PROFILE.substr(2)].str = temp;
themeOptions = NULL;
profileOptions = NULL;
checkProfile();
}
@@ -293,6 +294,7 @@ void GameSettings::checkProfile(){
sprintf(buf,RESPATH"/themes/%s/metrics.txt",temp.c_str());
}
SAFE_DELETE(themeOptions);
themeOptions = NEW GameOptions(buf);
//Validation of collection, etc, only happens if the game is up.