mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-02 15:17:27 +01:00
*Fix a crash.
--HG-- branch : trunk
This commit is contained in:
@@ -56,8 +56,8 @@ Pet::~Pet()
|
||||
{
|
||||
if(m_uint32Values) // only for fully created Object
|
||||
{
|
||||
if(Unit* owner = GetOwner())
|
||||
owner->SetPet(this, false);
|
||||
if(GetOwnerGUID())
|
||||
sLog.outCrash("Pet %u is deconstructed but it still has owner guid", GetEntry());
|
||||
|
||||
for (PetSpellMap::iterator i = m_spells.begin(); i != m_spells.end(); ++i)
|
||||
delete i->second;
|
||||
|
||||
Reference in New Issue
Block a user