mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 14:13:10 +00:00
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:
parent
187be733aa
commit
2d492ff8ba
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user