From 1d172c2a1ca839f969605ec2fad18fdda690727e Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 23 Nov 2008 15:06:01 -0600 Subject: *Fix a bug that logging out while casting far sight causes crash. --HG-- branch : trunk --- src/game/GridNotifiers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3