aboutsummaryrefslogtreecommitdiff
path: root/common/gameDetector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/gameDetector.cpp')
-rw-r--r--common/gameDetector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp
index 22b5902e51..ddc3ee7473 100644
--- a/common/gameDetector.cpp
+++ b/common/gameDetector.cpp
@@ -98,7 +98,7 @@ void GameDetector::updateconfig()
_music_volume = scummcfg->getInt("music_volume", _music_volume);
- _noSubtitles = scummcfg->getBool("nosubtitles", _noSubtitles);
+ _noSubtitles = scummcfg->getBool("nosubtitles", _noSubtitles ? true : false);
if ((val = scummcfg->get("path")))
_gameDataPath = strdup(val);
@@ -193,7 +193,7 @@ void GameDetector::parseCommandLine(int argc, char **argv)
case 'n':
CHECK_OPTION();
_noSubtitles = (c == 'n');
- scummcfg->setBool("nosubtitles", _noSubtitles);
+ scummcfg->setBool("nosubtitles", _noSubtitles ? true : false);
break;
case 'p':
HANDLE_OPTION();