summaryrefslogtreecommitdiff
path: root/modules/gdnative/android/android_gdn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gdnative/android/android_gdn.cpp')
-rw-r--r--modules/gdnative/android/android_gdn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/android/android_gdn.cpp b/modules/gdnative/android/android_gdn.cpp
index a48e51a390..fe3b3e7e12 100644
--- a/modules/gdnative/android/android_gdn.cpp
+++ b/modules/gdnative/android/android_gdn.cpp
@@ -48,7 +48,7 @@ extern "C" {
JNIEnv *GDAPI godot_android_get_env() {
#ifdef __ANDROID__
- return ThreadAndroid::get_env();
+ return get_jni_env();
#else
return nullptr;
#endif