From baf7c83e7d8b0ae21fba69d2135e1666e587e77b Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 27 Mar 2017 08:03:50 +0200 Subject: FULLPIPE: Sanity check on data loading --- engines/fullpipe/gfx.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/fullpipe') 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); -- cgit v1.2.3