diff options
author | Eugene Sandulenko | 2016-01-03 00:52:07 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-01-03 00:52:07 +0100 |
commit | b1a558f53cc9125cce4c3621e3020753a1bc5d24 (patch) | |
tree | 9eb602ae1aecb9cb04f07c06f2023225c5bacd79 | |
parent | 8ce82bd8b8242a9bacbab450322b0d0a2072f284 (diff) | |
download | scummvm-rg350-b1a558f53cc9125cce4c3621e3020753a1bc5d24.tar.gz scummvm-rg350-b1a558f53cc9125cce4c3621e3020753a1bc5d24.tar.bz2 scummvm-rg350-b1a558f53cc9125cce4c3621e3020753a1bc5d24.zip |
WAGE: Fix number parsing
-rw-r--r-- | engines/wage/script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp index d9d9252542..1a772df562 100644 --- a/engines/wage/script.cpp +++ b/engines/wage/script.cpp @@ -381,12 +381,12 @@ Script::Operand *Script::readStringOperand() { while (true) { byte c = _data->readByte(); - if (c < '0' || c > '9') - allDigits = false; if (c >= 0x20 && c < 0x80) *sb += c; else break; + if (c < '0' || c > '9') + allDigits = false; } _data->seek(-1, SEEK_CUR); |