diff options
author | Paul Gilbert | 2017-09-18 22:25:54 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-09-18 22:25:54 -0400 |
commit | af99606db8417ae69814907e16b3a89fbb1a1073 (patch) | |
tree | 1db848638a7efa83d86ab2adde2f67f2de07d5ac /engines/titanic/game/transport | |
parent | 3d4bc3c59b652acd53fa6307e53db7ad5a500f30 (diff) | |
download | scummvm-rg350-af99606db8417ae69814907e16b3a89fbb1a1073.tar.gz scummvm-rg350-af99606db8417ae69814907e16b3a89fbb1a1073.tar.bz2 scummvm-rg350-af99606db8417ae69814907e16b3a89fbb1a1073.zip |
TITANIC: Fix identified redundant tests & assignments
Diffstat (limited to 'engines/titanic/game/transport')
-rw-r--r-- | engines/titanic/game/transport/lift.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/titanic/game/transport/lift.cpp b/engines/titanic/game/transport/lift.cpp index 2dfede3d63..614018f447 100644 --- a/engines/titanic/game/transport/lift.cpp +++ b/engines/titanic/game/transport/lift.cpp @@ -100,8 +100,7 @@ bool CLift::StatusChangeMsg(CStatusChangeMsg *msg) { 354, 349, 344, 339, 334, 329, 324, 319, 299 }; - if (pet) - pet->setRoomsFloorNum(floorNum); + pet->setRoomsFloorNum(floorNum); if (pet->getRoomsElevatorNum() == 2 || pet->getRoomsElevatorNum() == 4) { if (floorNum > 27) floorNum = 27; |