diff options
Diffstat (limited to 'gob')
-rw-r--r-- | gob/inter_v1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gob/inter_v1.cpp b/gob/inter_v1.cpp index 9e5c0aa876..650246ead2 100644 --- a/gob/inter_v1.cpp +++ b/gob/inter_v1.cpp @@ -1033,7 +1033,7 @@ bool Inter_v1::o1_strstr(char &cmdCount, int16 &counter, int16 &retFlag) { resVar = _vm->_parse->parseVarIndex(); char *res = strstr(_vm->_global->_inter_variables + strVar, _vm->_global->_inter_resStr); - pos = res ? (res - (_vm->_global->_inter_variables + strVar)) : 0; + pos = res ? (res - (_vm->_global->_inter_variables + strVar)) : -1; WRITE_VAR_OFFSET(resVar, pos); return false; } |