From 004660be3db5f42b5ff109f23c4c7833259bfb4a Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Wed, 2 Jun 2021 20:33:29 +0200 Subject: [PATCH] Don't unsummon creatures not found within the active cells --- apps/openmw/mwmechanics/summoning.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/summoning.cpp b/apps/openmw/mwmechanics/summoning.cpp index 9f65f3d6c9..facadcb1af 100644 --- a/apps/openmw/mwmechanics/summoning.cpp +++ b/apps/openmw/mwmechanics/summoning.cpp @@ -152,7 +152,7 @@ namespace MWMechanics continue; } MWWorld::Ptr ptr = MWBase::Environment::get().getWorld()->searchPtrViaActorId(it->second); - if (ptr.isEmpty() || (ptr.getClass().getCreatureStats(ptr).isDead() && ptr.getClass().getCreatureStats(ptr).isDeathAnimationFinished())) + if (!ptr.isEmpty() && ptr.getClass().getCreatureStats(ptr).isDead() && ptr.getClass().getCreatureStats(ptr).isDeathAnimationFinished()) { // Purge the magic effect so a new creature can be summoned if desired const ESM::SummonKey& key = it->first;