diff --git a/engines/sci/engine/message.cpp b/engines/sci/engine/message.cpp index 0e040eff8bb..7cab3371995 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;