diff options
author | megamage <none@none> | 2009-03-16 11:48:25 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-16 11:48:25 -0600 |
commit | 2453f2212324d656676693fd2b420290797a9ebf (patch) | |
tree | 3d252d74a5b1cf89d8379c22d90285a3865592c3 /src/game/Map.cpp | |
parent | fdab13e3c1ebd5f516eabca33fb98972a2d1b4c4 (diff) | |
parent | d6a1516057fdb8261ddee94f97d15a8b4f3de3c7 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Map.cpp')
-rw-r--r-- | src/game/Map.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp index 4866ecb540f..1d6b96a5cd9 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -594,14 +594,14 @@ void Map::RelocationNotify() for(std::vector<uint64>::iterator iter = i_unitsToNotify.begin(); iter != i_unitsToNotify.end(); ++iter) { Unit *unit = ObjectAccessor::GetObjectInWorld(*iter, (Unit*)NULL); - if(!unit) + if(!unit || !unit->IsInWorld() || !unit->GetMapId() == GetId()) + { + *iter = 0; continue; + } unit->m_Notified = true; - if(!unit->IsInWorld()) - continue; - if(unit->GetTypeId() == TYPEID_PLAYER) { Trinity::PlayerRelocationNotifier notifier(*((Player*)unit)); |