From 515c848ba83e883fa79b2e29afa1815318f931c6 Mon Sep 17 00:00:00 2001 From: volzhs Date: Fri, 20 Jul 2018 10:41:32 +0900 Subject: [PATCH] Fix unwanted restarting --- core/os/os.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/os/os.cpp b/core/os/os.cpp index f99e98c240c..3b34f0aa153 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -674,6 +674,7 @@ List OS::get_restart_on_exit_argumens() const { OS::OS() { void *volatile stack_bottom; + restart_on_exit = false; last_error = NULL; singleton = this; _keep_screen_on = true; // set default value to true, because this had been true before godot 2.0.