aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 607a1a7626a..979db05fd64 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -20291,9 +20291,9 @@ bool Player::RewardPlayerAndGroupAtKill(Unit* pVictim)
void Player::RewardPlayerAndGroupAtEvent(uint32 creature_id, WorldObject* pRewardSource)
{
- if (!pRewardSource || pRewardSource->GetTypeId() != TYPEID_UNIT)
+ if (!pRewardSource)
return;
- uint64 creature_guid = pRewardSource->GetGUID();
+ uint64 creature_guid = (pRewardSource->GetTypeId() == TYPEID_UNIT) ? pRewardSource->GetGUID() : uint64(0);
// prepare data for near group iteration
if(Group *pGroup = GetGroup())