From 13466bb69245291a6c246ecbd58836bf5c36aef4 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 6 Aug 2017 18:54:38 -0400 Subject: TITANIC: Correct local variable name in SuccUBus --- engines/titanic/npcs/succubus.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/titanic') 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) { -- cgit v1.2.3