*Fix the bug that pet cannot be put in stable.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-04-03 18:22:46 -06:00
1 parent 837e15405d
commit b858dd535a
2 files changed
+6

No files matched your search

+4
View File
@@ -345,6 +345,8 @@ void Pet::SavePetToDB(PetSaveMode mode)
switch(mode)
{
case PET_SAVE_IN_STABLE_SLOT_1:
case PET_SAVE_IN_STABLE_SLOT_2:
case PET_SAVE_NOT_IN_SLOT:
{
RemoveAllAuras();
@@ -364,6 +366,8 @@ void Pet::SavePetToDB(PetSaveMode mode)
switch(mode)
{
case PET_SAVE_AS_CURRENT:
case PET_SAVE_IN_STABLE_SLOT_1:
case PET_SAVE_IN_STABLE_SLOT_2:
case PET_SAVE_NOT_IN_SLOT:
{
uint32 owner = GUID_LOPART(GetOwnerGUID());