summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-27 23:20:56 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-27 23:20:56 +0300
commit1302c401c0197a033d83946ace237dacf8a0d514 (patch)
tree8199d6d0a9dce26bd8d19b6d1cf870d3ce493ecf /src/actormanager.cpp
parentb7798fb6e16957b916349bd30ff14a12570f5a59 (diff)
downloadmanaverse-1302c401c0197a033d83946ace237dacf8a0d514.tar.gz
manaverse-1302c401c0197a033d83946ace237dacf8a0d514.tar.bz2
manaverse-1302c401c0197a033d83946ace237dacf8a0d514.tar.xz
manaverse-1302c401c0197a033d83946ace237dacf8a0d514.zip
Fix functions removeRoom / updateRoom.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp4
1 files changed, 2 insertions, 2 deletions
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<Being*>(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<Being*>(actor);
ChatObject *const chat = being->getChat();