1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-01 09:06:40 +00:00

Merge branch 'fix_warning' into 'master'

Fix clang warning: -Wunused-but-set-variable

See merge request OpenMW/openmw!4353
This commit is contained in:
psi29a 2024-09-03 16:13:12 +00:00
commit da0e2e7f57

View file

@ -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