From d2c30bd9f08aca991699f727db947cc8de95b63e Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 5 Jun 2009 22:42:46 -0500 Subject: *Add some debug info to find crash bug caused by player Notify() --HG-- branch : trunk --- src/game/Map.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game/Map.cpp') diff --git a/src/game/Map.cpp b/src/game/Map.cpp index 144dce1edf6..3f5b0ba8e5e 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -592,7 +592,10 @@ void Map::RelocationNotify() if(unit->GetTypeId() == TYPEID_PLAYER) { Trinity::PlayerRelocationNotifier notifier(*((Player*)unit)); + if(((Player*)unit)->m_seer != unit) VisitAll(((Player*)unit)->m_seer->GetPositionX(), ((Player*)unit)->m_seer->GetPositionY(), World::GetMaxVisibleDistance() + dist, notifier); + else + VisitAll(((Player*)unit)->GetPositionX(), ((Player*)unit)->GetPositionY(), World::GetMaxVisibleDistance() + dist, notifier); notifier.Notify(); } else -- cgit v1.2.3