mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-23 19:20:56 +00:00
Do not copy the whole attributes store
This commit is contained in:
parent
fc1f244627
commit
1126f38a1e
@ -476,7 +476,7 @@ namespace MWLua
|
||||
|
||||
auto skillIncreasesForAttributeStatsT
|
||||
= context.mLua->sol().new_usertype<SkillIncreasesForAttributeStats>("SkillIncreasesForAttributeStats");
|
||||
for (auto attribute : MWBase::Environment::get().getESMStore()->get<ESM::Attribute>())
|
||||
for (const auto& attribute : MWBase::Environment::get().getESMStore()->get<ESM::Attribute>())
|
||||
{
|
||||
skillIncreasesForAttributeStatsT[ESM::RefId(attribute.mId).serializeText()] = sol::property(
|
||||
[=](const SkillIncreasesForAttributeStats& stat) { return stat.get(context, attribute.mId); },
|
||||
|
Loading…
x
Reference in New Issue
Block a user