diff --git a/platform/osx/godot_main_osx.mm b/platform/osx/godot_main_osx.mm index 90501d01c46..18bbcc86f4a 100644 --- a/platform/osx/godot_main_osx.mm +++ b/platform/osx/godot_main_osx.mm @@ -84,5 +84,5 @@ int main(int argc, char **argv) { os.run(); // it is actually the OS that decides how to run Main::cleanup(); - return 0; + return os.get_exit_code(); };