mirror of
https://github.com/OpenMW/openmw.git
synced 2025-07-03 23:41:34 +00:00
Fix #7424
This commit is contained in:
parent
ab7eebb356
commit
8da6fd1095
1 changed files with 3 additions and 1 deletions
|
@ -988,7 +988,9 @@ namespace MWWorld
|
|||
setting.blank();
|
||||
setting.mId = ESM::RefId::stringRefId(key);
|
||||
setting.mValue = std::move(value);
|
||||
mStatic.emplace(setting.mId, std::move(setting));
|
||||
auto [iter, inserted] = mStatic.insert_or_assign(setting.mId, std::move(setting));
|
||||
if (inserted)
|
||||
mShared.push_back(&iter->second);
|
||||
};
|
||||
for (auto& [key, value] : Fallback::Map::getIntFallbackMap())
|
||||
addSetting(key, ESM::Variant(value));
|
||||
|
|
Loading…
Reference in a new issue