aboutsummaryrefslogtreecommitdiff
path: root/src/game/Map.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-05 22:42:46 -0500
committermegamage <none@none>2009-06-05 22:42:46 -0500
commitd2c30bd9f08aca991699f727db947cc8de95b63e (patch)
treea9d2edef646389d94afd3c1a42948da38a4b58e1 /src/game/Map.cpp
parent16d3c8378f779face4f1194f194e41907a9cca63 (diff)
*Add some debug info to find crash bug caused by player Notify()
--HG-- branch : trunk
Diffstat (limited to 'src/game/Map.cpp')
-rw-r--r--src/game/Map.cpp3
1 files changed, 3 insertions, 0 deletions
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