diff options
author | James Brown | 2002-12-26 13:44:40 +0000 |
---|---|---|
committer | James Brown | 2002-12-26 13:44:40 +0000 |
commit | 5ec4f7b2678dd307e1a78fbdbdcbfa303ba97111 (patch) | |
tree | f05192510d643b74a80cdfb444269cd6e0bae28b /scumm/script.cpp | |
parent | 91fbd9a351d93f8846f1fabb333c68c61b59dcb3 (diff) | |
download | scummvm-rg350-5ec4f7b2678dd307e1a78fbdbdcbfa303ba97111.tar.gz scummvm-rg350-5ec4f7b2678dd307e1a78fbdbdcbfa303ba97111.tar.bz2 scummvm-rg350-5ec4f7b2678dd307e1a78fbdbdcbfa303ba97111.zip |
Hack around a COMI crash..
svn-id: r6172
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r-- | scumm/script.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index 1c161732b2..cb89bea63a 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -878,8 +878,10 @@ int Scumm::getVerbEntrypoint(int obj, int entry) else verbptr = findResource(MKID('VERB'), objptr); - if (verbptr == NULL) - error("No verb block in object %d", obj); + if (verbptr == NULL) { // FIXME: Hacked from an error() for CMI + warning("No verb block in object %d", obj); + return 0; + } verboffs = verbptr - objptr; |