aboutsummaryrefslogtreecommitdiff
path: root/src/game/Pet.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-03 18:22:46 -0600
committermegamage <none@none>2009-04-03 18:22:46 -0600
commitb858dd535a67cda80ac8adb91dadedfb70e0628a (patch)
tree9106959c984427e45bab4389e8af22b2cb4b1e00 /src/game/Pet.cpp
parent837e15405df295701870381c48f26e810e8fe38f (diff)
*Fix the bug that pet cannot be put in stable.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Pet.cpp')
-rw-r--r--src/game/Pet.cpp4
1 files changed, 4 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());