mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
*Fix the bug that pet cannot be put in stable.
--HG-- branch : trunk
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user