Fix invalid invocation of get_class_loader.

The call was made on a `Godot` instance instead of an `Activity` instance.

(cherry picked from commit 2d492ff8ba)
This commit is contained in:
Fredia Huya-Kouadio 2020-12-23 02:07:37 -08:00 committed by Rémi Verschelde
parent 58b2d669a0
commit c27c436785
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -103,7 +103,7 @@ jobject GodotJavaWrapper::get_member_object(const char *p_name, const char *p_cl
jobject GodotJavaWrapper::get_class_loader() { jobject GodotJavaWrapper::get_class_loader() {
if (_get_class_loader) { if (_get_class_loader) {
JNIEnv *env = ThreadAndroid::get_env(); JNIEnv *env = ThreadAndroid::get_env();
return env->CallObjectMethod(godot_instance, _get_class_loader); return env->CallObjectMethod(activity, _get_class_loader);
} else { } else {
return NULL; return NULL;
} }