[8987] Allow swap spell and command/reaction in pet action bar.

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2009-12-17 18:21:06 +01:00
parent e7aa376e21
commit fa86c69c49
2 changed files with 51 additions and 16 deletions

View File

@@ -435,8 +435,7 @@ void Pet::SavePetToDB(PetSaveMode mode)
<< curmana << ", "
<< GetPower(POWER_HAPPINESS) << ", '";
// save only spell slots from action bar
for (uint32 i = ACTION_BAR_INDEX_PET_SPELL_START; i < ACTION_BAR_INDEX_PET_SPELL_END; ++i)
for(uint32 i = ACTION_BAR_INDEX_START; i < ACTION_BAR_INDEX_END; ++i)
{
ss << uint32(m_charmInfo->GetActionBarEntry(i)->GetType()) << " "
<< uint32(m_charmInfo->GetActionBarEntry(i)->GetAction()) << " ";