summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorFredia Huya-Kouadio <fhuyakou@gmail.com>2020-12-23 02:07:37 -0800
committerFredia Huya-Kouadio <fhuyakou@gmail.com>2020-12-23 02:08:27 -0800
commit2d492ff8ba8b9fe1acb1786007d797659cc1ee3e (patch)
treeefeff5184129249c9912f2a862ca94fc0aa6cdd5 /platform/android
parent187be733aac2cb368ee23254d199ff4c71162701 (diff)
Fix invalid invocation of `get_class_loader`.
The call was made on a `Godot` instance instead of an `Activity` instance.
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/java_godot_wrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/java_godot_wrapper.cpp b/platform/android/java_godot_wrapper.cpp
index 7919e47b5c..818e55476e 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 nullptr;
}