Core/Misc: Fix static analysis issues
This commit is contained in:
1 parent
21cad46097
commit
5efa54d11c
12 files changed
+27
-27
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user