aboutsummaryrefslogtreecommitdiff
path: root/engines/wage
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wage')
-rw-r--r--engines/wage/script.cpp2
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);