diff options
author | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2020-06-04 22:03:45 +0200 |
---|---|---|
committer | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2021-02-25 18:34:50 +0100 |
commit | 60d2c1fd47a0c24a127ea00f09724537f5527dbb (patch) | |
tree | 6b92be637c408a92715bcec68950250dcf31790e /main/main.cpp | |
parent | 0e4abcb77f6b5ce81824462706f8b2325bc3fed1 (diff) |
Remove GDScript bindings for OS.get/set_exit_code, SceneTree.quit(<exit_code>) should be used instead
Diffstat (limited to 'main/main.cpp')
-rw-r--r-- | main/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |