Fix summoning effects

coverity_scan^2
scrawl 8 years ago
parent a495b9b884
commit 183c46b0ef

@ -763,7 +763,7 @@ namespace MWMechanics
bool hasSummonEffect = false;
for (MagicEffects::Collection::const_iterator it = effects.begin(); it != effects.end(); ++it)
if (it->first.mId >= ESM::MagicEffect::SummonScamp && it->first.mId <= ESM::MagicEffect::SummonStormAtronach)
if (isSummoningEffect(it->first.mId))
hasSummonEffect = true;
if (!creatureStats.getSummonedCreatureMap().empty() || !creatureStats.getSummonedCreatureGraveyard().empty() || hasSummonEffect)

Loading…
Cancel
Save