From 1302c401c0197a033d83946ace237dacf8a0d514 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 27 Jul 2015 23:20:56 +0300 Subject: Fix functions removeRoom / updateRoom. --- src/actormanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/actormanager.cpp') diff --git a/src/actormanager.cpp b/src/actormanager.cpp index 2161f8f33..0699ecf57 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -1866,7 +1866,7 @@ void ActorManager::removeRoom(const int chatId) for_actors { ActorSprite *const actor = *it; - if (actor && actor->getType() != ActorType::Player) + if (actor && actor->getType() == ActorType::Npc) { Being *const being = static_cast(actor); const ChatObject *const chat = being->getChat(); @@ -1886,7 +1886,7 @@ void ActorManager::updateRoom(const ChatObject *const newChat) for_actors { ActorSprite *const actor = *it; - if (actor && actor->getType() != ActorType::Player) + if (actor && actor->getType() == ActorType::Npc) { Being *const being = static_cast(actor); ChatObject *const chat = being->getChat(); -- cgit v1.2.3-60-g2f50