aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Brown2003-01-08 22:47:44 +0000
committerJames Brown2003-01-08 22:47:44 +0000
commitecb9c2dd74f28a38203df5b57101cbfd6b69851c (patch)
tree9ac7679e35956565ed198ba55b24f3715b325edc
parentca5b32132ba5c0c53aaabea9e0f05e759d833a2c (diff)
downloadscummvm-rg350-ecb9c2dd74f28a38203df5b57101cbfd6b69851c.tar.gz
scummvm-rg350-ecb9c2dd74f28a38203df5b57101cbfd6b69851c.tar.bz2
scummvm-rg350-ecb9c2dd74f28a38203df5b57101cbfd6b69851c.zip
HACK alert: Don't crash due to this silly verbage bug
svn-id: r6362
-rw-r--r--scumm/script_v8.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp
index a6ca6cdf91..e50b04442d 100644
--- a/scumm/script_v8.cpp
+++ b/scumm/script_v8.cpp
@@ -1174,8 +1174,10 @@ void Scumm_v8::o8_verbOps()
if (_verbs[slot].verbid == 0)
break;
}
- if (slot == _maxVerbs)
- error("Too many verbs");
+ if (slot == _maxVerbs) {
+ warning("Too many verbs");
+ break;
+ }
_curVerbSlot = slot;
}
vs = &_verbs[_curVerbSlot];