void MapMgr::EventCorpseDespawn(uint64 guid) { Corpse * pCorpse = objmgr.GetCorpse((uint32)guid); if(pCorpse == 0) // Already Deleted return; if(pCorpse->GetMapMgr() != this) return; pCorpse->Despawn(); delete pCorpse; }