diff options
-rw-r--r-- | engines/gob/inter_v1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/inter_v1.cpp b/engines/gob/inter_v1.cpp index cabbfdacc7..ecc5ad48c5 100644 --- a/engines/gob/inter_v1.cpp +++ b/engines/gob/inter_v1.cpp @@ -1948,7 +1948,7 @@ bool Inter_v1::o1_strToLong(OpFuncParams ¶ms) { strVar = _vm->_parse->parseVarIndex(); strncpy0(str, GET_VARO_STR(strVar), 19); - res = atol(str); + res = atoi(str); destVar = _vm->_parse->parseVarIndex(); WRITE_VAR_OFFSET(destVar, res); |