Fixed cIniFile's SetValue().

How did we not see this earlier? Each call to SetValue would actually ADD a value!
master
madmaxoft 2014-01-10 16:23:22 +01:00
parent 8104f611f1
commit 4c360b54e3
1 changed files with 1 additions and 9 deletions

View File

@ -384,15 +384,7 @@ bool cIniFile::SetValue(const AString & keyname, const AString & valuename, cons
}
else
{
if (!create)
{
keys[keyID].values[valueID] = value;
}
else
{
keys[keyID].names.resize(keys[keyID].names.size() + 1, valuename);
keys[keyID].values.resize(keys[keyID].values.size() + 1, value);
}
keys[keyID].values[valueID] = value;
}
return true;