SCI: kReadNumber crash fix for lsl1

svn-id: r44597
This commit is contained in:
Martin Kiewitz 2009-10-04 11:05:38 +00:00
parent e2cc953a9f
commit a139ddd840

View File

@ -335,7 +335,7 @@ reg_t kReadNumber(EngineState *s, int argc, reg_t *argv) {
Common::String source_str = s->segMan->getString(argv[0]);
const char *source = source_str.c_str();
while (isspace(*source))
while (isspace((unsigned char)*source))
source++; /* Skip whitespace */
if (*source == '$') /* SCI uses this for hex numbers */