From 60d2c1fd47a0c24a127ea00f09724537f5527dbb Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Thu, 4 Jun 2020 22:03:45 +0200 Subject: Remove GDScript bindings for OS.get/set_exit_code, SceneTree.quit() should be used instead --- main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') diff --git a/main/main.cpp b/main/main.cpp index 71dd3cf1ad..e9b06f6b07 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1992,7 +1992,7 @@ bool Main::start() { if (check_only) { if (!script_res->is_valid()) { - OS::get_singleton()->set_exit_code(1); + OS::get_singleton()->set_exit_code(EXIT_FAILURE); } return false; } -- cgit v1.2.3