diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-11-26 11:20:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-26 11:20:16 +0100 |
commit | 7e27ac98da06b69d69bbcd26eb6078fadb998cf2 (patch) | |
tree | 1f708c59bf9ebf96e4322113e75e0764c4ec41df | |
parent | ae04d23cce118050f65e595e2f9e216e35b767bb (diff) | |
parent | 9feb9aef42616f6a1639ce8c5ba230b957c94fb8 (diff) |
Merge pull request #33899 from Scony/fix-script-check-only-exit-code
godot exit code improvement for --script --check-only, fixes #33895
-rw-r--r-- | main/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index c34d3da618..22a31d597e 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1517,6 +1517,9 @@ bool Main::start() { ERR_FAIL_COND_V_MSG(script_res.is_null(), false, "Can't load script: " + script); if (check_only) { + if (!script_res->is_valid()) { + OS::get_singleton()->set_exit_code(1); + } return false; } |