From db359f0f0e496d3373b3b2f3a747aaabf5fc0498 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 18 Jun 2018 00:18:44 +0200 Subject: MOHAWK: RIVEN: Fix crash for German Riven --- engines/mohawk/riven_stacks/aspit.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/mohawk') 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; -- cgit v1.2.3