diff options
Diffstat (limited to 'engines/mohawk/riven_stacks/aspit.cpp')
-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; |