Core/Misc: Fix static analysis issues

This commit is contained in:
Aokromes committed 2017-12-09 00:00:27 +01:00
1 parent 21cad46097
commit 5efa54d11c
12 files changed
+27 -27

No files matched your search

+1 -1
View File
@@ -209,7 +209,7 @@ void WorldSession::HandlePetActionHelper(Unit* pet, ObjectGuid guid1, uint32 spe
pet->ClearUnitState(UNIT_STATE_FOLLOW);
// This is true if pet has no target or has target but targets differs.
if (pet->GetVictim() != TargetUnit || (pet->GetVictim() == TargetUnit && !pet->GetCharmInfo()->IsCommandAttack()))
if (pet->GetVictim() != TargetUnit || !pet->GetCharmInfo()->IsCommandAttack())
{
if (pet->GetVictim())
pet->AttackStop();