diff options
author | Willem Jan Palenstijn | 2009-10-03 22:44:16 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2009-10-03 22:44:16 +0000 |
commit | f61bf4f97a208735dc42320e7ca072ca7fc5dd58 (patch) | |
tree | d098fd5a2e0eba149c61753ebd6313a032c92bd7 /engines/sci | |
parent | 0e5836bb3412a4d2defde20b6bf4a6bb65465c77 (diff) | |
download | scummvm-rg350-f61bf4f97a208735dc42320e7ca072ca7fc5dd58.tar.gz scummvm-rg350-f61bf4f97a208735dc42320e7ca072ca7fc5dd58.tar.bz2 scummvm-rg350-f61bf4f97a208735dc42320e7ca072ca7fc5dd58.zip |
SCI: Fix parse error in parse_reg_t
svn-id: r44578
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/console.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 29af940e27..7537d29549 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -2803,7 +2803,7 @@ int parse_reg_t(EngineState *s, const char *str, reg_t *dest) { // Scan for a period, after which (if present) we'll find an index const char *tmp = Common::find(str_objname.begin(), str_objname.end(), '.'); - if (tmp) { + if (tmp != str_objname.end()) { index = strtol(tmp + 1, &endptr, 16); if (*endptr) return -1; |