mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
Make a copy of map key to work around it being invalidated (Fixes #3329)
This commit is contained in:
parent
197e81206a
commit
3ec4ee6290
@ -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…
x
Reference in New Issue
Block a user