diff --git a/apps/openmw/mwlua/magicbindings.cpp b/apps/openmw/mwlua/magicbindings.cpp index da689558a2..71971de2fc 100644 --- a/apps/openmw/mwlua/magicbindings.cpp +++ b/apps/openmw/mwlua/magicbindings.cpp @@ -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().find(enam.mData.mEffectID); MWMechanics::ActiveSpells::ActiveEffect effect;