aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/pet_control/pet_control.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp
index 4cdab24f6d..1876c4664e 100644
--- a/engines/titanic/pet_control/pet_control.cpp
+++ b/engines/titanic/pet_control/pet_control.cpp
@@ -184,7 +184,9 @@ void CPetControl::resetRemoteTarget() {
}
void CPetControl::setActiveNPC(CTrueTalkNPC *npc) {
- if (_activeNPC == npc) {
+ if (_activeNPC != npc) {
+ _activeNPC = npc;
+
if (_activeNPC) {
_activeNPCName = npc->getName();
_conversations.displayNPCName(npc);