Fix invalid invocation of get_class_loader.

The call was made on a `Godot` instance instead of an `Activity` instance.
This commit is contained in:
Fredia Huya-Kouadio 2020-12-23 02:07:37 -08:00
parent 187be733aa
commit 2d492ff8ba

View File

@ -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 nullptr;
}