diff options
author | Martin Kiewitz | 2010-01-10 11:29:58 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-10 11:29:58 +0000 |
commit | 156e341e9b9902d67cb494c32678cab4d89ccddd (patch) | |
tree | 46874a5bf54224fdee45ce7e8dfc3f55a350339c | |
parent | 7a5c119930f28f6a41c418cbe88b85f16ab13464 (diff) | |
download | scummvm-rg350-156e341e9b9902d67cb494c32678cab4d89ccddd.tar.gz scummvm-rg350-156e341e9b9902d67cb494c32678cab4d89ccddd.tar.bz2 scummvm-rg350-156e341e9b9902d67cb494c32678cab4d89ccddd.zip |
SCI: kPortrait - error() out when resource could not be found
svn-id: r47222
-rw-r--r-- | engines/sci/graphics/portrait.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/graphics/portrait.cpp b/engines/sci/graphics/portrait.cpp index b755604142..f948a206cb 100644 --- a/engines/sci/graphics/portrait.cpp +++ b/engines/sci/graphics/portrait.cpp @@ -138,6 +138,9 @@ void Portrait::doit(Common::Point position, uint16 resourceId, uint16 noun, uint Resource *syncResource = _resMan->findResource(syncResourceId, true); uint syncOffset = 0; + if (!syncResource) + error("kPortrait: Could not open sync resource %d %X", resourceId, audioNumber); + // Draw base bitmap _palette->set(&_portraitPalette, 1); drawBitmap(0); |