-code cleanup
-memory leaks fixes
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-08-27 13:32:12 +00:00
parent 890c893c94
commit 99aa284431
11 changed files with 13 additions and 543 deletions
+2 -1
View File
@@ -127,7 +127,7 @@ int GameOptions::load(){
bool bnumber = true;
string name = s.substr(0,found);
string val = s.substr(found+1);
for(int x=0;x<val.size();x++) {
for(size_t x=0;x<val.size();x++) {
if(!isdigit(val[x])) {
bnumber = false;
break;
@@ -215,6 +215,7 @@ GameSettings::~GameSettings(){
SAFE_DELETE(globalOptions);
SAFE_DELETE(profileOptions);
SAFE_DELETE(themeOptions);
}
GameOption& GameSettings::operator[](string option_name){