aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/script.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-01-03 00:52:07 +0100
committerEugene Sandulenko2016-01-03 00:52:07 +0100
commitb1a558f53cc9125cce4c3621e3020753a1bc5d24 (patch)
tree9eb602ae1aecb9cb04f07c06f2023225c5bacd79 /engines/wage/script.cpp
parent8ce82bd8b8242a9bacbab450322b0d0a2072f284 (diff)
downloadscummvm-rg350-b1a558f53cc9125cce4c3621e3020753a1bc5d24.tar.gz
scummvm-rg350-b1a558f53cc9125cce4c3621e3020753a1bc5d24.tar.bz2
scummvm-rg350-b1a558f53cc9125cce4c3621e3020753a1bc5d24.zip
WAGE: Fix number parsing
Diffstat (limited to 'engines/wage/script.cpp')
-rw-r--r--engines/wage/script.cpp4
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);