diff options
Diffstat (limited to 'src/game/GridNotifiers.cpp')
-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); } |