aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/theme.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/theme.cpp b/gui/theme.cpp
index a3f0cee510..446f746cf3 100644
--- a/gui/theme.cpp
+++ b/gui/theme.cpp
@@ -243,7 +243,8 @@ bool Theme::themeConfigUseable(const Common::String &stylefile, const Common::St
}
Common::String temp;
- cfg->getKey("type", "theme", temp);
+ if (!cfg->getKey("type", "theme", temp))
+ return false;
if (cStyle)
*cStyle = temp;
if (0 != temp.compareToIgnoreCase(style) && !style.empty())