Browse Source

Merge pull request #89855 from Alex2782/fix_exit_code_macos

Fix `EXIT_SUCCESS` on MacOS
Rémi Verschelde 1 year ago
parent
commit
5d08c2631c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/macos/godot_main_macos.mm

+ 1 - 1
platform/macos/godot_main_macos.mm

@@ -80,7 +80,7 @@ int main(int argc, char **argv) {
 	@autoreleasepool {
 		ret = Main::start();
 	}
-	if (ret) {
+	if (ret == EXIT_SUCCESS) {
 		os.run();
 	} else {
 		os.set_exit_code(EXIT_FAILURE);