Skip to content

Commit 10da49c

Browse files
committed
[[ FFI ]] Fix incorrect reference to is_ui_bound
This patch fixes the missing 'java' part when unpacking the is_ui_bound java-specific foreign handler var.
1 parent d0175bf commit 10da49c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libscript/src/script-execute.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class MCScriptForeignInvocation
172172
case kMCScriptForeignHandlerLanguageJava:
173173
#ifdef TARGET_SUBPLATFORM_ANDROID
174174
extern bool MCAndroidIsOnSystemThread();
175-
if (!p_handler->is_ui_bound || MCAndroidIsOnSystemThread())
175+
if (!p_handler->java.is_ui_bound || MCAndroidIsOnSystemThread())
176176
#endif
177177
{
178178
MCJavaCallJNIMethod(p_handler->java.class_name,

0 commit comments

Comments
 (0)