aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-12 10:56:22 -0600
committermegamage <none@none>2009-03-12 10:56:22 -0600
commitab6e9bd7b43b2bbce899a780cdd942ac137e7d99 (patch)
tree5f46f04a018d8cc81f4f978320ca368a88091bb9
parente6f7a6079298619862c56905dbd7c7b6968e1730 (diff)
*Disable bind sight spells to fix the crash.
--HG-- branch : trunk
-rw-r--r--src/game/Map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp
index cc01013d890..0322a0258fb 100644
--- a/src/game/Map.cpp
+++ b/src/game/Map.cpp
@@ -718,7 +718,7 @@ void Map::Update(const uint32 &t_diff)
continue;
// Update bindsight players
- if(obj->isType(TYPEMASK_UNIT))
+ /*if(obj->isType(TYPEMASK_UNIT))
{
if(!((Unit*)obj)->GetSharedVisionList().empty())
for(SharedVisionList::const_iterator itr = ((Unit*)obj)->GetSharedVisionList().begin(); itr != ((Unit*)obj)->GetSharedVisionList().end(); ++itr)
@@ -733,7 +733,7 @@ void Map::Update(const uint32 &t_diff)
notifier.Notify();
}
}
- else if(obj->GetTypeId() == TYPEID_DYNAMICOBJECT)
+ else */if(obj->GetTypeId() == TYPEID_DYNAMICOBJECT)
{
if(Unit *caster = ((DynamicObject*)obj)->GetCaster())
if(caster->GetTypeId() == TYPEID_PLAYER && caster->GetUInt64Value(PLAYER_FARSIGHT) == obj->GetGUID())