diff options
author | Eugene Sandulenko | 2017-08-10 23:15:02 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-11 00:40:29 +0200 |
commit | 6541adaa2ed891dc337e8ab24656a3265af7cefe (patch) | |
tree | df8d52e389dd88bac3410d7473cfb236b06f1c1e /engines/wage | |
parent | 79102d87ec67f221e7d78f1e1928926cc04a3a24 (diff) | |
download | scummvm-rg350-6541adaa2ed891dc337e8ab24656a3265af7cefe.tar.gz scummvm-rg350-6541adaa2ed891dc337e8ab24656a3265af7cefe.tar.bz2 scummvm-rg350-6541adaa2ed891dc337e8ab24656a3265af7cefe.zip |
WAGE: allow using LET with negative number literals
Diffstat (limited to 'engines/wage')
-rw-r--r-- | engines/wage/script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp index f7f7d92769..4191da6056 100644 --- a/engines/wage/script.cpp +++ b/engines/wage/script.cpp @@ -461,7 +461,7 @@ Script::Operand *Script::readStringOperand() { *str += c; else break; - if (c < '0' || c > '9') + if ((c < '0' || c > '9') && !(c == '-' && str->empty())) allDigits = false; } _data->seek(-1, SEEK_CUR); |