aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-02 20:04:38 -0400
committerPaul Gilbert2016-11-02 20:04:38 -0400
commita15fb1c9a3e2803c7b7062f0b91c0a09f20dcf14 (patch)
tree7806bbd312c45705e57e5dfec06c540039060fc3 /engines/titanic/true_talk
parenta2af8fb051f3549c83ca3740cdb1702f91ca7d0f (diff)
downloadscummvm-rg350-a15fb1c9a3e2803c7b7062f0b91c0a09f20dcf14.tar.gz
scummvm-rg350-a15fb1c9a3e2803c7b7062f0b91c0a09f20dcf14.tar.bz2
scummvm-rg350-a15fb1c9a3e2803c7b7062f0b91c0a09f20dcf14.zip
TITANIC: Fix correctly getting the Deskbot's script
Diffstat (limited to 'engines/titanic/true_talk')
-rw-r--r--engines/titanic/true_talk/true_talk_manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/titanic/true_talk/true_talk_manager.cpp b/engines/titanic/true_talk/true_talk_manager.cpp
index 0e90676eef..8e17b92df6 100644
--- a/engines/titanic/true_talk/true_talk_manager.cpp
+++ b/engines/titanic/true_talk/true_talk_manager.cpp
@@ -245,7 +245,7 @@ void CTrueTalkManager::start4(CTrueTalkNPC *npc, CViewItem *view) {
TTnpcScript *CTrueTalkManager::getTalker(const CString &name) const {
if (name.contains("Doorbot"))
return _scripts.getNpcScript(104);
- else if (name.contains("DeskBot"))
+ else if (name.contains("Deskbot"))
return _scripts.getNpcScript(103);
else if (name.contains("LiftBot"))
return _scripts.getNpcScript(105);
@@ -271,6 +271,7 @@ TTnpcScript *CTrueTalkManager::getNpcScript(CTrueTalkNPC *npc) const {
if (!script) {
// Fall back on the default NPC script
+ warning("Could not find NPC script for %s, using fallback", npc->getName().c_str());
script = _scripts.getNpcScript(101);
}