*Fix some bugs of pet.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-27 22:47:28 -06:00
parent d0a58f705f
commit ff83e4a9b1
18 changed files with 260 additions and 182 deletions
+3 -3
View File
@@ -111,11 +111,11 @@ void Totem::UnSummon()
if (owner)
{
// clear owenr's totem slot
for(int i = 0; i < MAX_TOTEM; ++i)
for(int i = SUMMON_SLOT_TOTEM; i < MAX_TOTEM_SLOT; ++i)
{
if(owner->m_TotemSlot[i]==GetGUID())
if(owner->m_SummonSlot[i]==GetGUID())
{
owner->m_TotemSlot[i] = 0;
owner->m_SummonSlot[i] = 0;
break;
}
}