diff options
author | Eugene Sandulenko | 2017-03-27 08:03:50 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-03-27 08:04:20 +0200 |
commit | baf7c83e7d8b0ae21fba69d2135e1666e587e77b (patch) | |
tree | d50ff17fe0b499d0764b955acd5bfe45669abcfd /engines/fullpipe | |
parent | b8a07d38d534a43b5963b6586d47144a65206671 (diff) | |
download | scummvm-rg350-baf7c83e7d8b0ae21fba69d2135e1666e587e77b.tar.gz scummvm-rg350-baf7c83e7d8b0ae21fba69d2135e1666e587e77b.tar.bz2 scummvm-rg350-baf7c83e7d8b0ae21fba69d2135e1666e587e77b.zip |
FULLPIPE: Sanity check on data loading
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/gfx.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index c316f5f616..7153ae77fd 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -587,6 +587,9 @@ void Picture::getDibInfo() { warning("Picture::getDibInfo: data is empty <%s>", _memfilename.c_str()); MemoryObject::load(); + + if (!_data) + error("Picture::getDibInfo: error loading object #%d", _cnum); } Common::MemoryReadStream *s = new Common::MemoryReadStream(_data + off - 32, 32); |