aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 0e040eff8b..7cab337199 100644
--- a/engines/sci/engine/message.cpp
+++ b/engines/sci/engine/message.cpp
@@ -168,7 +168,7 @@ Common::String MessageState::getText() {
skippedSubstr += str[i];
// Hopefully these locale-dependant functions are good enough
- if (islower(str[i]) || isdigit(str[i])) {
+ if (islower((unsigned char)str[i]) || isdigit((unsigned char)str[i])) {
// Lowercase or digit found, this is not a stage direction
strippedStr += skippedSubstr;
skipping = false;