diff options
author | Paul Gilbert | 2016-10-25 19:26:42 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-10-25 19:26:42 -0400 |
commit | 8ec1f77c06da31787b98f14cde4bd3413a00ba9c (patch) | |
tree | 0ef600a8dbf5c5a03a08f3c6a3d36f1c2f8851b2 | |
parent | 44bcade6d39a1410b35c894ec386ec0d7ea153d7 (diff) | |
download | scummvm-rg350-8ec1f77c06da31787b98f14cde4bd3413a00ba9c.tar.gz scummvm-rg350-8ec1f77c06da31787b98f14cde4bd3413a00ba9c.tar.bz2 scummvm-rg350-8ec1f77c06da31787b98f14cde4bd3413a00ba9c.zip |
TITANIC: Fix setting active NPC
-rw-r--r-- | engines/titanic/pet_control/pet_control.cpp | 4 |
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); |