*Use map pointer of killed creature instead of player pointer to prevent crash in case killer is not in world.
--HG-- branch : trunk
This commit is contained in:
1 parent
ffcbd11b2c
commit
b1183c931b
2 files changed
+2
-1
No files matched your search
@@ -13668,6 +13668,7 @@ void Unit::SetToNotify()
|
||||
|
||||
void Unit::Kill(Unit *pVictim, bool durabilityLoss)
|
||||
{
|
||||
assert(pVictim->IsInWorld() && pVictim->FindMap());
|
||||
// Prevent killing unit twice (and giving reward from kill twice)
|
||||
if (!pVictim->GetHealth())
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user