Wintergrasp: Quest Fix (Slay them all && No Mercy Mericiless), by Manuel

Player: Fix possible server crash in Player::RewardPlayerAndGroupAtEvent, by Spp

--HG--
branch : trunk
This commit is contained in:
tartalo
2009-10-21 19:06:54 +02:00
parent b18099e4b1
commit db9408cc53
2 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -20289,7 +20289,7 @@ bool Player::RewardPlayerAndGroupAtKill(Unit* pVictim)
void Player::RewardPlayerAndGroupAtEvent(uint32 creature_id, WorldObject* pRewardSource)
{
uint64 creature_guid = pRewardSource->GetTypeId()==TYPEID_UNIT ? pRewardSource->GetGUID() : uint64(0);
uint64 creature_guid = (pRewardSource && pRewardSource->GetTypeId()==TYPEID_UNIT) ? pRewardSource->GetGUID() : uint64(0);
// prepare data for near group iteration
if(Group *pGroup = GetGroup())