From c2bcf0df0758c4cff59f051b0bbfe255b3b72937 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Wed, 1 Feb 2023 18:15:03 -0800 Subject: [PATCH] Scripting: Fix object get thunking --- src/script/types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/types.c b/src/script/types.c index 3f04647a7..c2b367210 100644 --- a/src/script/types.c +++ b/src/script/types.c @@ -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);