From 262b31cf08565c0302aaa2f7e6e598b717389aab Mon Sep 17 00:00:00 2001 From: elsid Date: Wed, 27 Mar 2024 23:00:56 +0100 Subject: [PATCH] Fix clang warning: -Wunused-but-set-variable apps/openmw/mwmechanics/spellcasting.cpp:45:13: warning: variable 'index' set but not used [-Wunused-but-set-variable] 45 | int index = -1; | ^ --- apps/openmw/mwmechanics/spellcasting.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/openmw/mwmechanics/spellcasting.cpp b/apps/openmw/mwmechanics/spellcasting.cpp index dd63f8bffa..d22b6c4837 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