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) if (_verbs[slot].verbid == 0)
break; break;
} }
if (slot == _maxVerbs) if (slot == _maxVerbs) {
error("Too many verbs"); warning("Too many verbs");
break;
}
_curVerbSlot = slot; _curVerbSlot = slot;
} }
vs = &_verbs[_curVerbSlot]; vs = &_verbs[_curVerbSlot];