mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Core/Misc: Fixed warnings
This commit is contained in:
@@ -198,8 +198,8 @@ class npc_pet_mage_mirror_image : public CreatureScript
|
||||
if (!target || me->GetVictim() != target)
|
||||
{
|
||||
Unit* ownerTarget = nullptr;
|
||||
if (Player* owner = me->GetCharmerOrOwner()->ToPlayer())
|
||||
ownerTarget = owner->GetSelectedUnit();
|
||||
if (Player* ownerPlayer = me->GetCharmerOrOwner()->ToPlayer())
|
||||
ownerTarget = ownerPlayer->GetSelectedUnit();
|
||||
|
||||
// recognize which victim will be choosen
|
||||
if (ownerTarget && ownerTarget->GetTypeId() == TYPEID_PLAYER)
|
||||
|
||||
Reference in New Issue
Block a user