diff options
author | megamage <none@none> | 2009-04-03 18:22:46 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-04-03 18:22:46 -0600 |
commit | b858dd535a67cda80ac8adb91dadedfb70e0628a (patch) | |
tree | 9106959c984427e45bab4389e8af22b2cb4b1e00 | |
parent | 837e15405df295701870381c48f26e810e8fe38f (diff) |
*Fix the bug that pet cannot be put in stable.
--HG--
branch : trunk
-rw-r--r-- | src/game/Pet.cpp | 4 | ||||
-rw-r--r-- | src/game/Pet.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index b33f948092b..8987939fc4b 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -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()); diff --git a/src/game/Pet.h b/src/game/Pet.h index 3d1630c9ddc..5879208a6b8 100644 --- a/src/game/Pet.h +++ b/src/game/Pet.h @@ -39,6 +39,8 @@ enum PetSaveMode { PET_SAVE_AS_DELETED =-1, 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 }; |