*Add some debug info to find crash bug caused by player Notify()

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-06-05 22:42:46 -05:00
1 parent 16d3c8378f
commit d2c30bd9f0
2 files changed
+13

No files matched your search

+3
View File
@@ -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