mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9647] Fix current pet save in summoned state.
Thanks to hunuza for explcit bug line pointing ;)
This commit is contained in:
parent
f9f21b5f7f
commit
47878ab6aa
2 changed files with 10 additions and 9 deletions
|
|
@ -17033,7 +17033,7 @@ void Player::RemovePet(Pet* pet, PetSaveMode mode, bool returnreagent)
|
|||
return;
|
||||
|
||||
// not save secondary permanent pet as current
|
||||
if (pet && m_temporaryUnsummonedPetNumber != pet->GetCharmInfo()->GetPetNumber() && mode == PET_SAVE_AS_CURRENT)
|
||||
if (pet && m_temporaryUnsummonedPetNumber && m_temporaryUnsummonedPetNumber != pet->GetCharmInfo()->GetPetNumber() && mode == PET_SAVE_AS_CURRENT)
|
||||
mode = PET_SAVE_NOT_IN_SLOT;
|
||||
|
||||
if (returnreagent && pet && mode != PET_SAVE_AS_CURRENT)
|
||||
|
|
@ -17105,6 +17105,7 @@ Pet* Player::GetMiniPet()
|
|||
{
|
||||
if (!m_miniPet)
|
||||
return NULL;
|
||||
|
||||
return GetMap()->GetPet(m_miniPet);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9646"
|
||||
#define REVISION_NR "9647"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue