mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 02:09:41 +00:00
change setValue to replace value instead of insert
This commit is contained in:
parent
15965972f4
commit
625744298b
2 changed files with 2 additions and 3 deletions
|
@ -6,6 +6,7 @@
|
|||
Bug #5379: Wandering NPCs falling through cantons
|
||||
Bug #5453: Magic effect VFX are offset for creatures
|
||||
Bug #5483: AutoCalc flag is not used to calculate spells cost
|
||||
Bug #6037: Morrowind Content Language Cannot be Set to English in OpenMW Launcher
|
||||
Bug #6066: addtopic "return" does not work from within script. No errors thrown
|
||||
Bug #6067: esp loader fails in for certain subrecord orders
|
||||
Bug #6101: Disarming trapped unlocked owned objects isn't considered a crime
|
||||
|
|
|
@ -24,9 +24,7 @@ namespace Config
|
|||
|
||||
inline void setValue(const QString &key, const QString &value)
|
||||
{
|
||||
QStringList values = mSettings.values(key);
|
||||
if (!values.contains(value))
|
||||
mSettings.insert(key, value);
|
||||
mSettings.replace(key, value);
|
||||
}
|
||||
|
||||
inline void setMultiValue(const QString &key, const QString &value)
|
||||
|
|
Loading…
Reference in a new issue