forked from mirror/openmw-tes3mp
Fix mLocals not being updated in InterpreterContext::updatePtr
This commit is contained in:
parent
c6822b9eb6
commit
70c5f64caa
1 changed files with 3 additions and 0 deletions
|
@ -576,6 +576,9 @@ namespace MWScript
|
|||
void InterpreterContext::updatePtr(const MWWorld::Ptr& base, const MWWorld::Ptr& updated)
|
||||
{
|
||||
if (!mReference.isEmpty() && base == mReference)
|
||||
{
|
||||
mReference = updated;
|
||||
mLocals = &mReference.getRefData().getLocals();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue