Skip to content

Commit

Permalink
Merge branch 'fix_warning' into 'master'
Browse files Browse the repository at this point in the history
Fix clang warning: -Wunused-but-set-variable

See merge request OpenMW/openmw!4353
  • Loading branch information
psi29a committed Sep 3, 2024
2 parents 89976a9 + 262b31c commit da0e2e7
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 da0e2e7

Please sign in to comment.