From c27c436785785c30cf62134a22ca9ec7cd6ce7dd Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Wed, 23 Dec 2020 02:07:37 -0800 Subject: [PATCH] Fix invalid invocation of `get_class_loader`. The call was made on a `Godot` instance instead of an `Activity` instance. (cherry picked from commit 2d492ff8ba8b9fe1acb1786007d797659cc1ee3e) --- platform/android/java_godot_wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/android/java_godot_wrapper.cpp b/platform/android/java_godot_wrapper.cpp index 1b88e070eca..1ebde56e6d6 100644 --- a/platform/android/java_godot_wrapper.cpp +++ b/platform/android/java_godot_wrapper.cpp @@ -103,7 +103,7 @@ jobject GodotJavaWrapper::get_member_object(const char *p_name, const char *p_cl jobject GodotJavaWrapper::get_class_loader() { if (_get_class_loader) { JNIEnv *env = ThreadAndroid::get_env(); - return env->CallObjectMethod(godot_instance, _get_class_loader); + return env->CallObjectMethod(activity, _get_class_loader); } else { return NULL; }