summaryrefslogtreecommitdiff
path: root/main/main.cpp
diff options
context:
space:
mode:
authorEmmanuel Leblond <emmanuel.leblond@gmail.com>2020-06-04 22:03:45 +0200
committerEmmanuel Leblond <emmanuel.leblond@gmail.com>2021-02-25 18:34:50 +0100
commit60d2c1fd47a0c24a127ea00f09724537f5527dbb (patch)
tree6b92be637c408a92715bcec68950250dcf31790e /main/main.cpp
parent0e4abcb77f6b5ce81824462706f8b2325bc3fed1 (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.cpp2
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;
}