aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/ThemeEngine.cpp')
-rw-r--r--gui/ThemeEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index 2f9c7ae279..e063e11674 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -1503,7 +1503,7 @@ Common::String ThemeEngine::genLocalizedFontFilename(const Common::String &filen
bool ThemeEngine::themeConfigParseHeader(Common::String header, Common::String &themeName) {
// Check that header is not corrupted
- if (header[0] < 0 || header[0] > 127) {
+ if ((byte)header[0] > 127) {
warning("Corrupted theme header found");
return false;
}