diff options
author | megamage <none@none> | 2008-11-23 15:06:01 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-11-23 15:06:01 -0600 |
commit | 1d172c2a1ca839f969605ec2fad18fdda690727e (patch) | |
tree | 6a8655bb298e84cffc3a2f7de1df1d0d807e37dc | |
parent | 32b78f767c6ae8107e8e04fa5c3e33bbe01d3efa (diff) |
*Fix a bug that logging out while casting far sight causes crash.
--HG--
branch : trunk
-rw-r--r-- | src/game/GridNotifiers.cpp | 2 |
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); } |