diff options
author | Eugene Sandulenko | 2018-06-18 00:18:44 +0200 |
---|---|---|
committer | Bastien Bouclet | 2018-06-29 13:31:54 +0200 |
commit | db359f0f0e496d3373b3b2f3a747aaabf5fc0498 (patch) | |
tree | d4f2c302cebdf5fb4953268e4d8b253772d5b62e | |
parent | 2e8d08c1d0d626b1dd9c69c951de07aec7fd4bb4 (diff) | |
download | scummvm-rg350-db359f0f0e496d3373b3b2f3a747aaabf5fc0498.tar.gz scummvm-rg350-db359f0f0e496d3373b3b2f3a747aaabf5fc0498.tar.bz2 scummvm-rg350-db359f0f0e496d3373b3b2f3a747aaabf5fc0498.zip |
MOHAWK: RIVEN: Fix crash for German Riven
-rw-r--r-- | engines/mohawk/riven_stacks/aspit.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/mohawk/riven_stacks/aspit.cpp b/engines/mohawk/riven_stacks/aspit.cpp index 893221244c..cba7d404b3 100644 --- a/engines/mohawk/riven_stacks/aspit.cpp +++ b/engines/mohawk/riven_stacks/aspit.cpp @@ -116,6 +116,12 @@ void ASpit::xastartupbtnhide(const ArgumentArray &args) { for (uint i = 0; i < ARRAYSIZE(items); i++) { RivenHotspot *hotspot = _vm->getCard()->getHotspotByBlstId(items[i].blstId); + + if (!hotspot) { + warning("Missing hotspot %d", items[i].blstId); + continue; + } + Common::Rect hotspotRect = hotspot->getRect(); Graphics::Surface surface; |