diff --git a/platform/macos/godot_main_macos.mm b/platform/macos/godot_main_macos.mm index 279d8054627..942c351ac0b 100644 --- a/platform/macos/godot_main_macos.mm +++ b/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);