Permalink
Browse files

ok now real crash reason...

  • Loading branch information...
1 parent fcf292e commit 4fc6930c0fcb64796e0b8577c43564281989ad26 @Feanordev Feanordev committed Feb 13, 2012
Showing with 8 additions and 5 deletions.
  1. +8 −5 src/game/Unit.cpp
View
13 src/game/Unit.cpp
@@ -955,11 +955,14 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
{
player_tap->SendDirectMessage(&data);
- WorldPacket data2(SMSG_LOOT_LIST, (8+1+1));
- data2 << creature->GetObjectGuid();
- data2 << uint8(0); // unk1
- data2 << uint8(0); // no group looter
- player_tap->SendMessageToSetInRange(&data2, GetMap()->GetVisibilityDistance(), true);
+ if(creature)
+ {
+ WorldPacket data2(SMSG_LOOT_LIST, (8+1+1));
+ data2 << creature->GetObjectGuid();
+ data2 << uint8(0); // unk1
+ data2 << uint8(0); // no group looter
+ player_tap->SendMessageToSetInRange(&data2, GetMap()->GetVisibilityDistance(), true);
+ }
}
if (creature) // Fill loot at death

0 comments on commit 4fc6930

Please sign in to comment.