aboutsummaryrefslogtreecommitdiff
path: root/base/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'base/main.cpp')
-rw-r--r--base/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 1b9e9495ee..d8afe0ddf7 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -360,7 +360,8 @@ extern "C" int main(int argc, char *argv[]) {
else
ConfMan.loadDefaultConfigFile();
- gDebugLevel = ConfMan.getInt("debuglevel");
+ if (ConfMan.hasKey("debuglevel"))
+ gDebugLevel = ConfMan.getInt("debuglevel");
// Update the config file
ConfMan.set("versioninfo", gScummVMVersion, Common::ConfigManager::kApplicationDomain);