aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorEugene Sandulenko2019-09-18 20:42:28 +0200
committerEugene Sandulenko2019-09-18 20:42:28 +0200
commit4a1d2cfce4db9622e83efdc1c0768beef04d9d79 (patch)
tree4b01b8234544225d68d9df3a008cb9337eec70be /engines/sci
parent0e4e5840140079abba848f4022fb81266ba7da88 (diff)
downloadscummvm-rg350-4a1d2cfce4db9622e83efdc1c0768beef04d9d79.tar.gz
scummvm-rg350-4a1d2cfce4db9622e83efdc1c0768beef04d9d79.tar.bz2
scummvm-rg350-4a1d2cfce4db9622e83efdc1c0768beef04d9d79.zip
SCI: Fix detection of Cyrillic characters in messages
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/message.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/message.cpp b/engines/sci/engine/message.cpp
index 2e69e9340f..0d7f03ca1e 100644
--- a/engines/sci/engine/message.cpp
+++ b/engines/sci/engine/message.cpp
@@ -438,7 +438,7 @@ bool MessageState::stringStage(Common::String &outstr, const Common::String &inS
// For Russian we allow all upper characters
if (g_sci->getLanguage() == Common::RU_RUS) {
- if ((inStr[i] >= 'a') || ((inStr[i] >= '0') && (inStr[i] <= '9') && (getSciVersion() < SCI_VERSION_2)))
+ if (((byte)inStr[i] >= 'a') || ((inStr[i] >= '0') && (inStr[i] <= '9') && (getSciVersion() < SCI_VERSION_2)))
return false;
}