aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2008-11-23 15:06:01 -0600
committermegamage <none@none>2008-11-23 15:06:01 -0600
commit1d172c2a1ca839f969605ec2fad18fdda690727e (patch)
tree6a8655bb298e84cffc3a2f7de1df1d0d807e37dc /src
parent32b78f767c6ae8107e8e04fa5c3e33bbe01d3efa (diff)
*Fix a bug that logging out while casting far sight causes crash.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/GridNotifiers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GridNotifiers.cpp b/src/game/GridNotifiers.cpp
index 54ee2e67726..0c952f69649 100644
--- a/src/game/GridNotifiers.cpp
+++ b/src/game/GridNotifiers.cpp
@@ -190,7 +190,7 @@ Deliverer::Visit(DynamicObjectMapType &m)
{
// Send packet back to the caster if the caster has vision of dynamic object
Player* caster = (Player*)iter->getSource()->GetCaster();
- if (caster->GetUInt64Value(PLAYER_FARSIGHT) == iter->getSource()->GetGUID() &&
+ if (caster && caster->GetUInt64Value(PLAYER_FARSIGHT) == iter->getSource()->GetGUID() &&
(!i_dist || iter->getSource()->GetDistance(&i_source) <= i_dist))
SendPacket(caster);
}