mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +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());
|
||||
|
||||
Reference in New Issue
Block a user