From ace9cfe60d658cbf364738d923212839dcdc2d02 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 11 Nov 2016 21:27:44 -0500 Subject: TITANIC: Fix using remote to go to assigned room floor --- engines/titanic/game/pet/pet_lift.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/titanic/game/pet') diff --git a/engines/titanic/game/pet/pet_lift.cpp b/engines/titanic/game/pet/pet_lift.cpp index a7b48853e6..75a48a6a6c 100644 --- a/engines/titanic/game/pet/pet_lift.cpp +++ b/engines/titanic/game/pet/pet_lift.cpp @@ -50,8 +50,8 @@ bool CPETLift::TransportMsg(CTransportMsg *msg) { } else if (msg->_roomName == "BottomOfWell") { floorNum = 39; } else if (msg->_roomName == "PlayersRoom" && pet) { - int assignedFloor = pet->getAssignedFloorNum(); - if (assignedFloor < 1 || assignedFloor > 39) { + floorNum = pet->getAssignedFloorNum(); + if (floorNum < 1 || floorNum > 39) { pet->petDisplayMessage(NO_ROOM_ASSIGNED); floorNum = -1; } -- cgit v1.2.3