diff options
author | Filippos Karapetis | 2015-06-18 12:25:55 +0300 |
---|---|---|
committer | Filippos Karapetis | 2015-06-18 12:25:55 +0300 |
commit | 5c8001224bc859cb7f04fdb8a7acc25b21c251fe (patch) | |
tree | c96a560bc83647f7fb51630aba4e958c184bcd72 | |
parent | 5ece075b582418b38f194c1f39a06c8c7343aeeb (diff) | |
download | scummvm-rg350-5c8001224bc859cb7f04fdb8a7acc25b21c251fe.tar.gz scummvm-rg350-5c8001224bc859cb7f04fdb8a7acc25b21c251fe.tar.bz2 scummvm-rg350-5c8001224bc859cb7f04fdb8a7acc25b21c251fe.zip |
SHERLOCK: Add a sanity check in checkObject()
This avoids the crash after the second intro scene
-rw-r--r-- | engines/sherlock/objects.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sherlock/objects.cpp b/engines/sherlock/objects.cpp index be6bd4263d..ac5296c79e 100644 --- a/engines/sherlock/objects.cpp +++ b/engines/sherlock/objects.cpp @@ -157,6 +157,11 @@ void BaseObject::checkObject() { ++_frameNumber; do { + if (!_sequences) { + warning("checkObject: _sequences is not set"); + break; + } + // Check for end of sequence codeFound = checkEndOfSequence(); |