Scripting: Fix object get thunking

This commit is contained in:
Vicki Pfau 2023-02-01 18:15:03 -08:00
parent f2e9ea6a6b
commit c2bcf0df07
1 changed files with 1 additions and 1 deletions

View File

@ -1262,7 +1262,7 @@ bool mScriptObjectGet(struct mScriptValue* obj, const char* member, struct mScri
this->type = obj->type;
this->refs = mSCRIPT_VALUE_UNREF;
this->flags = 0;
this->value.opaque = obj;
this->value.opaque = obj->value.opaque;
mSCRIPT_PUSH(&frame.arguments, CHARP, member);
if (!mScriptInvoke(&getMember, &frame) || mScriptListSize(&frame.returnValues) != 1) {
mScriptFrameDeinit(&frame);