aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/bellbot_script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/true_talk/bellbot_script.cpp')
-rw-r--r--engines/titanic/true_talk/bellbot_script.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/titanic/true_talk/bellbot_script.cpp b/engines/titanic/true_talk/bellbot_script.cpp
index c51c918a2e..44fa961fcc 100644
--- a/engines/titanic/true_talk/bellbot_script.cpp
+++ b/engines/titanic/true_talk/bellbot_script.cpp
@@ -681,7 +681,8 @@ int BellbotScript::doSentenceEntry(int val1, const int *srcIdP, const TTroomScri
CNodeItem *node = CTrueTalkManager::_currentNPC->getNode();
if (node) {
CString nodeName = node->getName();
- if (nodeName == "5" || nodeName == "6" || nodeName == "7") {
+ if (nodeName.containsIgnoreCase("5") || nodeName.containsIgnoreCase("6")
+ || nodeName.containsIgnoreCase("7")) {
CTrueTalkManager::triggerAction(29, 2);
selectResponse(201571);
applyResponse();
@@ -707,7 +708,8 @@ int BellbotScript::doSentenceEntry(int val1, const int *srcIdP, const TTroomScri
CNodeItem *node = CTrueTalkManager::_currentNPC->getNode();
if (node) {
CString nodeName = node->getName();
- if (nodeName == "5" || nodeName == "6" || nodeName != "7") {
+ if (nodeName.containsIgnoreCase("5") || nodeName.containsIgnoreCase("6")
+ || nodeName.containsIgnoreCase("7")) {
CTrueTalkManager::triggerAction(29, 2);
selectResponse(201571);
applyResponse();