aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/scripts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lure/scripts.cpp')
-rw-r--r--engines/lure/scripts.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp
index 5d865c890b..979542f89c 100644
--- a/engines/lure/scripts.cpp
+++ b/engines/lure/scripts.cpp
@@ -336,7 +336,9 @@ void Script::doorOpen(uint16 hotspotId, uint16 v2, uint16 v3) {
// Lookup the given message Id for the specified character and display in a dialog
void Script::displayMessage(uint16 messageId, uint16 characterId, uint16 unknownVal) {
- Dialog::showMessage(messageId, characterId);
+ Hotspot *hotspot = Resources::getReference().getActiveHotspot(characterId);
+ if (hotspot != NULL)
+ hotspot->showMessage(messageId);
}
// Creates a new dispatch action with the given support data entry