[9487] Fix a typo in Pet::addSpell

Signed-off-by: Lightguard <Lightguard@tauri.hu>
This commit is contained in:
pasdVn 2010-02-28 23:36:15 +01:00 committed by Lightguard
parent 89cdcd2472
commit 9811c0d0e3
2 changed files with 2 additions and 2 deletions

View file

@ -1372,7 +1372,7 @@ bool Pet::addSpell(uint32 spell_id,ActiveStates active /*= ACT_DECIDE*/, PetSpel
if (IsPassiveSpell(spell_id))
CastSpell(this, spell_id, true);
else
m_charmInfo->AddSpellToActionBar(spell_id);
m_charmInfo->AddSpellToActionBar(spell_id, ActiveStates(newspell.active));
if(newspell.active == ACT_ENABLED)
ToggleAutocast(spell_id, true);