From a90a4c8bc2ff350d69dc43f99c880d493efeb211 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 8 Dec 2016 20:03:28 -0500 Subject: TITANIC: Fix leaving 2nd class suites --- engines/titanic/core/game_object.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/titanic/core') diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp index 3a5f6567a6..48cc5206fd 100644 --- a/engines/titanic/core/game_object.cpp +++ b/engines/titanic/core/game_object.cpp @@ -867,10 +867,10 @@ CViewItem *CGameObject::parseView(const CString &viewString) { // Ensure we have the specified room if (project) { - if (room->getName() != roomName) { + if (room->getName().compareToIgnoreCase(roomName)) { // Scan for the correct room for (room = project->findFirstRoom(); - room && room->getName() != roomName; + room && room->getName().compareToIgnoreCase(roomName); room = project->findNextRoom(room)) ; } } @@ -879,13 +879,13 @@ CViewItem *CGameObject::parseView(const CString &viewString) { // Find the designated node within the room CNodeItem *node = dynamic_cast(room->findChildInstanceOf(CNodeItem::_type)); - while (node && node->getName() != nodeName) + while (node && node->getName().compareToIgnoreCase(nodeName)) node = dynamic_cast(room->findNextInstanceOf(CNodeItem::_type, node)); if (!node) return nullptr; CViewItem *view = dynamic_cast(node->findChildInstanceOf(CViewItem::_type)); - while (view && view->getName() != viewName) + while (view && view->getName().compareToIgnoreCase(viewName)) view = dynamic_cast(node->findNextInstanceOf(CViewItem::_type, view)); if (!view) return nullptr; -- cgit v1.2.3