Fixed cIniFile's SetValue().
How did we not see this earlier? Each call to SetValue would actually ADD a value!
This commit is contained in:
parent
8104f611f1
commit
4c360b54e3
@ -383,17 +383,9 @@ bool cIniFile::SetValue(const AString & keyname, const AString & valuename, cons
|
|||||||
keys[keyID].values.resize(keys[keyID].values.size() + 1, value);
|
keys[keyID].values.resize(keys[keyID].values.size() + 1, value);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
if (!create)
|
|
||||||
{
|
{
|
||||||
keys[keyID].values[valueID] = value;
|
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user