diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-27 23:20:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-27 23:20:56 +0300 |
commit | 1302c401c0197a033d83946ace237dacf8a0d514 (patch) | |
tree | 8199d6d0a9dce26bd8d19b6d1cf870d3ce493ecf | |
parent | b7798fb6e16957b916349bd30ff14a12570f5a59 (diff) | |
download | manaplus-1302c401c0197a033d83946ace237dacf8a0d514.tar.gz manaplus-1302c401c0197a033d83946ace237dacf8a0d514.tar.bz2 manaplus-1302c401c0197a033d83946ace237dacf8a0d514.tar.xz manaplus-1302c401c0197a033d83946ace237dacf8a0d514.zip |
Fix functions removeRoom / updateRoom.
-rw-r--r-- | src/actormanager.cpp | 4 |
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(); |