aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorEugene Sandulenko2018-06-18 00:18:44 +0200
committerBastien Bouclet2018-06-29 13:31:54 +0200
commitdb359f0f0e496d3373b3b2f3a747aaabf5fc0498 (patch)
treed4f2c302cebdf5fb4953268e4d8b253772d5b62e /engines/mohawk
parent2e8d08c1d0d626b1dd9c69c951de07aec7fd4bb4 (diff)
downloadscummvm-rg350-db359f0f0e496d3373b3b2f3a747aaabf5fc0498.tar.gz
scummvm-rg350-db359f0f0e496d3373b3b2f3a747aaabf5fc0498.tar.bz2
scummvm-rg350-db359f0f0e496d3373b3b2f3a747aaabf5fc0498.zip
MOHAWK: RIVEN: Fix crash for German Riven
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/riven_stacks/aspit.cpp6
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;