Browse Source

Merge pull request #20295 from volzhs/fix-restart

Fix unwanted restarting
volzhs 7 years ago
parent
commit
b2d7641a0d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/os/os.cpp

+ 1 - 0
core/os/os.cpp

@@ -674,6 +674,7 @@ List<String> 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.