From 153e97a80faf8f92aa80dcc10d09a3c0eb50243e Mon Sep 17 00:00:00 2001 From: Sun <22406854+SunTheCourier@users.noreply.github.com> Date: Sun, 21 Apr 2019 23:48:34 -0700 Subject: [PATCH] Check for 0 --- stratosphere/fatal/source/fatal_config.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stratosphere/fatal/source/fatal_config.cpp b/stratosphere/fatal/source/fatal_config.cpp index 62d684b79..0bd7b2930 100644 --- a/stratosphere/fatal/source/fatal_config.cpp +++ b/stratosphere/fatal/source/fatal_config.cpp @@ -85,6 +85,7 @@ void InitializeFatalConfig() { setsysGetFlag(SetSysFlag_Quest, &config->quest_flag); config->is_auto_reboot_enabled = R_SUCCEEDED(setsysGetSettingsItemValue("atmosphere", "fatal_auto_reboot_interval", &config->fatal_auto_reboot_interval, sizeof(config->fatal_auto_reboot_interval))); + config->is_auto_reboot_enabled &= (config->fatal_auto_reboot_interval != 0); SetupConfigLanguages(); }