From 4c9eb86cbf6e28a86d8691703b7e37d02686833e Mon Sep 17 00:00:00 2001 From: dumitru-stama Date: Sun, 14 Oct 2018 17:07:09 -0700 Subject: [PATCH] Fixed initialization of android modules --- platform/android/java_glue.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/android/java_glue.cpp b/platform/android/java_glue.cpp index ad8f21785d5..07e4048c120 100644 --- a/platform/android/java_glue.cpp +++ b/platform/android/java_glue.cpp @@ -883,6 +883,8 @@ static void _initialize_java_modules() { ERR_EXPLAIN("Couldn't find proper initialize function 'public static Godot.SingletonBase Class::initialize(Activity p_activity)' initializer for singleton class: " + m); ERR_CONTINUE(!initialize); } + jobject obj = env->CallStaticObjectMethod(singletonClass, initialize, _godot_instance); + env->NewGlobalRef(obj); } } }