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

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-03 18:22:46 -06:00
parent 837e15405d
commit b858dd535a
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -345,6 +345,8 @@ void Pet::SavePetToDB(PetSaveMode mode)
switch(mode) switch(mode)
{ {
case PET_SAVE_IN_STABLE_SLOT_1:
case PET_SAVE_IN_STABLE_SLOT_2:
case PET_SAVE_NOT_IN_SLOT: case PET_SAVE_NOT_IN_SLOT:
{ {
RemoveAllAuras(); RemoveAllAuras();
@@ -364,6 +366,8 @@ void Pet::SavePetToDB(PetSaveMode mode)
switch(mode) switch(mode)
{ {
case PET_SAVE_AS_CURRENT: 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: case PET_SAVE_NOT_IN_SLOT:
{ {
uint32 owner = GUID_LOPART(GetOwnerGUID()); uint32 owner = GUID_LOPART(GetOwnerGUID());
+2
View File
@@ -39,6 +39,8 @@ enum PetSaveMode
{ {
PET_SAVE_AS_DELETED =-1, PET_SAVE_AS_DELETED =-1,
PET_SAVE_AS_CURRENT = 0, PET_SAVE_AS_CURRENT = 0,
PET_SAVE_IN_STABLE_SLOT_1 = 1,
PET_SAVE_IN_STABLE_SLOT_2 = 2,
PET_SAVE_NOT_IN_SLOT = 3 PET_SAVE_NOT_IN_SLOT = 3
}; };