* Add NULL-pointer check to CharmInfo destructor. Closes issue #3287.
* Remove references to AuctionHouseBot files from win project. --HG-- branch : trunk
This commit is contained in:
1 parent
1565fe4ff4
commit
4fb3098d18
4 files changed
+11
-24
No files matched your search
@@ -13491,9 +13491,8 @@ CharmInfo::CharmInfo(Unit* unit)
|
||||
CharmInfo::~CharmInfo()
|
||||
{
|
||||
if (m_unit->GetTypeId() == TYPEID_UNIT)
|
||||
{
|
||||
m_unit->ToCreature()->SetReactState(m_oldReactState);
|
||||
}
|
||||
if (Creature *pCreature = m_unit->ToCreature())
|
||||
pCreature->SetReactState(m_oldReactState);
|
||||
}
|
||||
|
||||
void CharmInfo::InitPetActionBar()
|
||||
|
||||
Reference in new issue
Block a user