Core/Misc: Coding standard (#17521)

(cherry picked from commit a832865ce2)

# Conflicts:
#	src/server/game/Handlers/PetHandler.cpp
#	src/server/game/Spells/Spell.cpp
This commit is contained in:
Aokromes
2016-07-06 10:54:36 +02:00
committed by joschiwald
parent 6d9a0ade7b
commit a5f21b4c62

View File

@@ -521,7 +521,7 @@ void WorldSession::HandlePetRename(WorldPackets::Pet::PetRename& packet)
Pet* pet = ObjectAccessor::GetPet(*_player, petguid);
// check it!
if (!pet || !pet->IsPet() || ((Pet*)pet)->getPetType()!= HUNTER_PET ||
if (!pet || !pet->IsPet() || ((Pet*)pet)->getPetType() != HUNTER_PET ||
!pet->HasByteFlag(UNIT_FIELD_BYTES_2, UNIT_BYTES_2_OFFSET_PET_FLAGS, UNIT_CAN_BE_RENAMED) ||
pet->GetOwnerGUID() != _player->GetGUID() || !pet->GetCharmInfo())
return;