Prevent recursive calls to ActiveSpells::update

coverity_clang_test
Evil Eye 2 years ago
parent 6d3de520e8
commit d3253cb636

@ -184,6 +184,8 @@ namespace MWMechanics
void ActiveSpells::update(const MWWorld::Ptr& ptr, float duration)
{
if (mIterating)
return;
const auto& creatureStats = ptr.getClass().getCreatureStats(ptr);
assert(&creatureStats.getActiveSpells() == this);
IterationGuard guard{ *this };

Loading…
Cancel
Save