mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Fix mLocals not being updated in InterpreterContext::updatePtr
This commit is contained in:
parent
c6822b9eb6
commit
70c5f64caa
@ -576,6 +576,9 @@ namespace MWScript
|
|||||||
void InterpreterContext::updatePtr(const MWWorld::Ptr& base, const MWWorld::Ptr& updated)
|
void InterpreterContext::updatePtr(const MWWorld::Ptr& base, const MWWorld::Ptr& updated)
|
||||||
{
|
{
|
||||||
if (!mReference.isEmpty() && base == mReference)
|
if (!mReference.isEmpty() && base == mReference)
|
||||||
|
{
|
||||||
mReference = updated;
|
mReference = updated;
|
||||||
|
mLocals = &mReference.getRefData().getLocals();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user