HACK alert: Don't crash due to this silly verbage bug

svn-id: r6362
This commit is contained in:
James Brown 2003-01-08 22:47:44 +00:00
parent ca5b32132b
commit ecb9c2dd74

View file

@ -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];