From 4a8a89e1db1f103020ffecbb570e1c570c2e0d21 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 1 Jul 2009 18:36:03 -0500 Subject: [8103] More wide use IsInWorld checks and delayed at teleport operations. Author: Ambal * IsInWorld used to prevent return unexpected not in world objects. * Delayed operations need to process its in world state. --HG-- branch : trunk --- src/game/Group.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/Group.cpp') diff --git a/src/game/Group.cpp b/src/game/Group.cpp index c08d1236c32..9db043b28f1 100644 --- a/src/game/Group.cpp +++ b/src/game/Group.cpp @@ -967,7 +967,7 @@ void Group::SendUpdate() void Group::UpdatePlayerOutOfRange(Player* pPlayer) { - if(!pPlayer) + if(!pPlayer || !pPlayer->IsInWorld()) return; Player *player; -- cgit v1.2.3