Core: Fix warnings

--HG--
branch : trunk
This commit is contained in:
Spp
2010-11-16 14:08:12 +01:00
parent 7abcf9812e
commit addd762c4d
19 changed files with 51 additions and 51 deletions
+3 -3
View File
@@ -1147,9 +1147,9 @@ void Group::UpdatePlayerOutOfRange(Player* pPlayer)
for (GroupReference *itr = GetFirstMember(); itr != NULL; itr = itr->next())
{
if (player = itr->getSource())
if (!player->IsWithinDist(pPlayer, player->GetSightRange(), false))
player->GetSession()->SendPacket(&data);
player = itr->getSource();
if (player && !player->IsWithinDist(pPlayer, player->GetSightRange(), false))
player->GetSession()->SendPacket(&data);
}
}