mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
MTROPOLIS: Fix parent indirection bugfix not working with indexed attribs
This commit is contained in:
parent
3e6aa1d7ee
commit
da21afd830
@ -2929,7 +2929,7 @@ MiniscriptInstructionOutcome RuntimeObject::ParentWriteProxyInterface::refAttrib
|
||||
return kMiniscriptInstructionOutcomeFailed;
|
||||
|
||||
DynamicValueWriteProxy tempProxy;
|
||||
DynamicValueWriteObjectHelper::create(static_cast<RuntimeObject *>(parent), tempProxy);
|
||||
DynamicValueWriteObjectHelper::create(parent, tempProxy);
|
||||
|
||||
return tempProxy.pod.ifc->refAttrib(thread, proxy, tempProxy.pod.objectRef, tempProxy.pod.ptrOrOffset, attrib);
|
||||
}
|
||||
@ -2941,7 +2941,7 @@ MiniscriptInstructionOutcome RuntimeObject::ParentWriteProxyInterface::refAttrib
|
||||
return kMiniscriptInstructionOutcomeFailed;
|
||||
|
||||
DynamicValueWriteProxy tempProxy;
|
||||
DynamicValueWriteObjectHelper::create(static_cast<RuntimeObject *>(objectRef), tempProxy);
|
||||
DynamicValueWriteObjectHelper::create(parent, tempProxy);
|
||||
|
||||
return tempProxy.pod.ifc->refAttribIndexed(thread, proxy, tempProxy.pod.objectRef, tempProxy.pod.ptrOrOffset, attrib, index);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user