* 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:
azazel committed 2010-08-06 12:28:37 +06:00
1 parent 1565fe4ff4
commit 4fb3098d18
4 files changed
+11 -24

No files matched your search

+2 -3
View File
@@ -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()