diff options
author | Eugene Sandulenko | 2013-09-10 09:56:06 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-10 09:56:06 +0300 |
commit | 59d989d8c1f423f53761669aa007943ca649c2bc (patch) | |
tree | 4bd9f3729117f67a279a52dde81c55571d8c8d9c /engines/fullpipe | |
parent | fda471ee800ed2e9ef3f4b3369dc508155d0c82e (diff) | |
download | scummvm-rg350-59d989d8c1f423f53761669aa007943ca649c2bc.tar.gz scummvm-rg350-59d989d8c1f423f53761669aa007943ca649c2bc.tar.bz2 scummvm-rg350-59d989d8c1f423f53761669aa007943ca649c2bc.zip |
FULLPIPE: Add sanity check. CID 1063218
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/messages.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp index 818753ab22..0fa2f6d8a0 100644 --- a/engines/fullpipe/messages.cpp +++ b/engines/fullpipe/messages.cpp @@ -644,6 +644,9 @@ bool addMessageHandlerByIndex(int (*callback)(ExCommand *), int index, int16 id) if (curItem) curItem = curItem->nextItem; + if (!curItem) + return false; + bool res = allocMessageHandler(curItem, id, callback, index); if (res) |