1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 06:45:35 +00:00

Loop by const ref in activeSpells.add

This commit is contained in:
Alexei Kotov 2024-06-22 11:57:09 +03:00
parent ca3f89045c
commit 43b381f592

View file

@ -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;