Loop by const ref in activeSpells.add

pull/3236/head
Alexei Kotov 6 months ago
parent ca3f89045c
commit 43b381f592

@ -931,7 +931,7 @@ namespace MWLua
if (stackable)
params.setFlag(ESM::ActiveSpells::Flag_Stackable);
for (auto enam : enams)
for (const ESM::IndexedENAMstruct& enam : enams)
{
const ESM::MagicEffect* mgef = esmStore.get<ESM::MagicEffect>().find(enam.mData.mEffectID);
MWMechanics::ActiveSpells::ActiveEffect effect;

Loading…
Cancel
Save