diff options
Diffstat (limited to 'engines/mohawk/riven.cpp')
-rw-r--r-- | engines/mohawk/riven.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index 00d0e5255f..935ab4b45f 100644 --- a/engines/mohawk/riven.cpp +++ b/engines/mohawk/riven.cpp @@ -376,8 +376,7 @@ void MohawkEngine_Riven::refreshCard() { } // Now we need to redraw the cursor if necessary and handle mouse over scripts - _curHotspot = -1; - checkHotspotChange(); + updateCurrentHotspot(); } void MohawkEngine_Riven::loadCard(uint16 id) { @@ -496,6 +495,11 @@ void MohawkEngine_Riven::checkHotspotChange() { } } +void MohawkEngine_Riven::updateCurrentHotspot() { + _curHotspot = -1; + checkHotspotChange(); +} + Common::String MohawkEngine_Riven::getHotspotName(uint16 hotspot) { assert(hotspot < _hotspotCount); |