diff --git a/apps/openmw/mwmechanics/spellcasting.cpp b/apps/openmw/mwmechanics/spellcasting.cpp index dd63f8bffa5..d22b6c48371 100644 --- a/apps/openmw/mwmechanics/spellcasting.cpp +++ b/apps/openmw/mwmechanics/spellcasting.cpp @@ -42,10 +42,8 @@ namespace MWMechanics { const auto world = MWBase::Environment::get().getWorld(); std::map> toApply; - int index = -1; for (const ESM::IndexedENAMstruct& effectInfo : effects.mList) { - ++index; const ESM::MagicEffect* effect = world->getStore().get().find(effectInfo.mData.mEffectID); if (effectInfo.mData.mRange != rangeType