aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2017-08-06 18:54:38 -0400
committerPaul Gilbert2017-08-06 18:54:38 -0400
commit13466bb69245291a6c246ecbd58836bf5c36aef4 (patch)
tree55d392c185b056270501640f0614861f0c168eea
parentfe7f921118b742656c615b4c62e9daed46c7a445 (diff)
downloadscummvm-rg350-13466bb69245291a6c246ecbd58836bf5c36aef4.tar.gz
scummvm-rg350-13466bb69245291a6c246ecbd58836bf5c36aef4.tar.bz2
scummvm-rg350-13466bb69245291a6c246ecbd58836bf5c36aef4.zip
TITANIC: Correct local variable name in SuccUBus
-rw-r--r--engines/titanic/npcs/succubus.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/titanic/npcs/succubus.cpp b/engines/titanic/npcs/succubus.cpp
index ef681f64b8..1155eb08b2 100644
--- a/engines/titanic/npcs/succubus.cpp
+++ b/engines/titanic/npcs/succubus.cpp
@@ -385,9 +385,10 @@ bool CSuccUBus::PETDeliverMsg(CPETDeliverMsg *msg) {
if (!pet)
return true;
- uint destRoomFlags = pet->getRoomFlags();
- CGameObject *mailObject = findMail(destRoomFlags);
+ uint srcRoomFlags = pet->getRoomFlags();
+ CGameObject *mailObject = findMail(srcRoomFlags);
if (!mailObject) {
+ // Nothing to send
switch (getRandomNumber(2)) {
case 0:
startTalking(this, 70111, findView());
@@ -422,7 +423,7 @@ bool CSuccUBus::PETDeliverMsg(CPETDeliverMsg *msg) {
if (_isFeathers) {
// The feather has special handling to be rejected by the SuccUBus
_sendLost = false;
- sendMail(destRoomFlags, roomFlags);
+ sendMail(srcRoomFlags, roomFlags);
pet->phonographAction("");
if (_okStartFrame >= 0) {