mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-16 01:36:44 +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:
commit
da0e2e7f57
1 changed files with 0 additions and 2 deletions
|
@ -42,10 +42,8 @@ namespace MWMechanics
|
||||||
{
|
{
|
||||||
const auto world = MWBase::Environment::get().getWorld();
|
const auto world = MWBase::Environment::get().getWorld();
|
||||||
std::map<MWWorld::Ptr, std::vector<ESM::IndexedENAMstruct>> toApply;
|
std::map<MWWorld::Ptr, std::vector<ESM::IndexedENAMstruct>> toApply;
|
||||||
int index = -1;
|
|
||||||
for (const ESM::IndexedENAMstruct& effectInfo : effects.mList)
|
for (const ESM::IndexedENAMstruct& effectInfo : effects.mList)
|
||||||
{
|
{
|
||||||
++index;
|
|
||||||
const ESM::MagicEffect* effect = world->getStore().get<ESM::MagicEffect>().find(effectInfo.mData.mEffectID);
|
const ESM::MagicEffect* effect = world->getStore().get<ESM::MagicEffect>().find(effectInfo.mData.mEffectID);
|
||||||
|
|
||||||
if (effectInfo.mData.mRange != rangeType
|
if (effectInfo.mData.mRange != rangeType
|
||||||
|
|
Loading…
Reference in a new issue