diff options
Diffstat (limited to 'engines/tinsel/debugger.cpp')
-rw-r--r-- | engines/tinsel/debugger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tinsel/debugger.cpp b/engines/tinsel/debugger.cpp index f422c88e94..5d8b22116d 100644 --- a/engines/tinsel/debugger.cpp +++ b/engines/tinsel/debugger.cpp @@ -57,7 +57,8 @@ int strToInt(const char *s) { // Hexadecimal string uint tmp; - sscanf(s, "%xh", &tmp); + if (!sscanf(s, "%xh", &tmp)) + tmp = 0; return (int)tmp; } |