mirror of https://github.com/mgba-emu/mgba.git
Scripting: Fix object get thunking
This commit is contained in:
parent
f2e9ea6a6b
commit
c2bcf0df07
|
@ -1262,7 +1262,7 @@ bool mScriptObjectGet(struct mScriptValue* obj, const char* member, struct mScri
|
||||||
this->type = obj->type;
|
this->type = obj->type;
|
||||||
this->refs = mSCRIPT_VALUE_UNREF;
|
this->refs = mSCRIPT_VALUE_UNREF;
|
||||||
this->flags = 0;
|
this->flags = 0;
|
||||||
this->value.opaque = obj;
|
this->value.opaque = obj->value.opaque;
|
||||||
mSCRIPT_PUSH(&frame.arguments, CHARP, member);
|
mSCRIPT_PUSH(&frame.arguments, CHARP, member);
|
||||||
if (!mScriptInvoke(&getMember, &frame) || mScriptListSize(&frame.returnValues) != 1) {
|
if (!mScriptInvoke(&getMember, &frame) || mScriptListSize(&frame.returnValues) != 1) {
|
||||||
mScriptFrameDeinit(&frame);
|
mScriptFrameDeinit(&frame);
|
||||||
|
|
Loading…
Reference in New Issue