1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-15 22:21:00 +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;