mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
Compile fix.
This commit is contained in:
parent
aa668bc66f
commit
a8b04f09e0
3 changed files with 22 additions and 19 deletions
|
|
@ -439,7 +439,7 @@ void WorldSession::HandlePetRename( WorldPacket & recv_data )
|
|||
Pet* pet = _player->GetMap()->GetPet(petguid);
|
||||
// check it!
|
||||
if( !pet || pet->getPetType() != HUNTER_PET ||
|
||||
pet->GetByteValue(UNIT_FIELD_BYTES_2, 2) != UNIT_RENAME_ALLOWED ||
|
||||
!pet->HasByteFlag(UNIT_FIELD_BYTES_2, 2, UNIT_CAN_BE_RENAMED) ||
|
||||
pet->GetOwnerGUID() != _player->GetGUID() || !pet->GetCharmInfo() )
|
||||
return;
|
||||
|
||||
|
|
@ -461,7 +461,7 @@ void WorldSession::HandlePetRename( WorldPacket & recv_data )
|
|||
if(_player->GetGroup())
|
||||
_player->SetGroupUpdateFlag(GROUP_UPDATE_FLAG_PET_NAME);
|
||||
|
||||
pet->SetByteValue(UNIT_FIELD_BYTES_2, 2, UNIT_RENAME_NOT_ALLOWED);
|
||||
pet->RemoveByteFlag(UNIT_FIELD_BYTES_2, 2, UNIT_CAN_BE_RENAMED);
|
||||
|
||||
if(isdeclined)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue