diff options
Diffstat (limited to 'platform/android/os_android.cpp')
-rw-r--r-- | platform/android/os_android.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/android/os_android.cpp b/platform/android/os_android.cpp index aa22f970ff..da66442736 100644 --- a/platform/android/os_android.cpp +++ b/platform/android/os_android.cpp @@ -865,6 +865,9 @@ Error OS_Android::create_process(const String &p_path, const List<String> &p_arg Error OS_Android::create_instance(const List<String> &p_arguments, ProcessID *r_child_id) { int instance_id = godot_java->create_new_godot_instance(p_arguments); + if (instance_id == -1) { + return FAILED; + } if (r_child_id) { *r_child_id = instance_id; } |