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:
parent
58b2d669a0
commit
c27c436785
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue