mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 02:39:42 +00:00
Don't unsummon creatures not found within the active cells
This commit is contained in:
parent
b2791fd487
commit
004660be3d
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ namespace MWMechanics
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
MWWorld::Ptr ptr = MWBase::Environment::get().getWorld()->searchPtrViaActorId(it->second);
|
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
|
// Purge the magic effect so a new creature can be summoned if desired
|
||||||
const ESM::SummonKey& key = it->first;
|
const ESM::SummonKey& key = it->first;
|
||||||
|
|
Loading…
Reference in a new issue