Skip to content

Commit

Permalink
Fix clang warning: -Wunused-but-set-variable
Browse files Browse the repository at this point in the history
apps/openmw/mwmechanics/spellcasting.cpp:45:13: warning: variable 'index' set but not used [-Wunused-but-set-variable]
   45 |         int index = -1;
      |             ^
  • Loading branch information
elsid committed Sep 1, 2024
1 parent f456978 commit 262b31c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apps/openmw/mwmechanics/spellcasting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ namespace MWMechanics
{
const auto world = MWBase::Environment::get().getWorld();
std::map<MWWorld::Ptr, std::vector<ESM::IndexedENAMstruct>> toApply;
int index = -1;
for (const ESM::IndexedENAMstruct& effectInfo : effects.mList)
{
++index;
const ESM::MagicEffect* effect = world->getStore().get<ESM::MagicEffect>().find(effectInfo.mData.mEffectID);

if (effectInfo.mData.mRange != rangeType
Expand Down

0 comments on commit 262b31c

Please sign in to comment.