aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/res.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lure/res.cpp')
-rw-r--r--engines/lure/res.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/lure/res.cpp b/engines/lure/res.cpp
index 7a9bc842e9..e58ce87faf 100644
--- a/engines/lure/res.cpp
+++ b/engines/lure/res.cpp
@@ -462,8 +462,10 @@ int Resources::getAnimationIndex(HotspotAnimData *animData) {
uint16 Resources::getHotspotAction(uint16 actionsOffset, Action action) {
HotspotActionList *list = _actionsList.getActions(actionsOffset);
- if (!list) return 0;
- return list->getActionOffset(action);
+ uint16 offset = (!list) ? 0 : list->getActionOffset(action);
+ debugC(ERROR_DETAILED, kLureDebugHotspots,
+ "Resources::getHotspotAction actionsOffset=%xh result=%xh", actionsOffset, offset);
+ return offset;
}
TalkHeaderData *Resources::getTalkHeader(uint16 hotspotId) {