forked from mirror/openmw-tes3mp
Make a copy of map key to work around it being invalidated (Fixes #3329)
This commit is contained in:
parent
197e81206a
commit
3ec4ee6290
1 changed files with 2 additions and 1 deletions
|
@ -997,7 +997,8 @@ namespace MWMechanics
|
|||
|
||||
if (!iter->first.getClass().getCreatureStats(iter->first).isDead())
|
||||
{
|
||||
updateActor(iter->first, duration);
|
||||
MWWorld::Ptr actor = iter->first; // make a copy of the map key to avoid it being invalidated when the player teleports
|
||||
updateActor(actor, duration);
|
||||
if (MWBase::Environment::get().getWorld()->hasCellChanged())
|
||||
{
|
||||
return; // for now abort update of the old cell when cell changes by teleportation magic effect
|
||||
|
|
Loading…
Reference in a new issue