aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-11 21:27:44 -0500
committerPaul Gilbert2016-11-11 21:27:44 -0500
commitace9cfe60d658cbf364738d923212839dcdc2d02 (patch)
treeb039e3a1efbb128c35d642acd278b3b460a759d4
parent952847972438c94d623b759c8f579d3603c0382e (diff)
downloadscummvm-rg350-ace9cfe60d658cbf364738d923212839dcdc2d02.tar.gz
scummvm-rg350-ace9cfe60d658cbf364738d923212839dcdc2d02.tar.bz2
scummvm-rg350-ace9cfe60d658cbf364738d923212839dcdc2d02.zip
TITANIC: Fix using remote to go to assigned room floor
-rw-r--r--engines/titanic/game/pet/pet_lift.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}