Core/Scripts: fix some /W4 warnings
This commit is contained in:
1 parent
5c4153ba98
commit
6c686876d0
8 files changed
+26
-30
No files matched your search
@@ -199,8 +199,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* playerOwner = me->GetCharmerOrOwner()->ToPlayer())
|
||||
ownerTarget = playerOwner->GetSelectedUnit();
|
||||
|
||||
// recognize which victim will be choosen
|
||||
if (ownerTarget && ownerTarget->GetTypeId() == TYPEID_PLAYER)
|
||||
|
||||
Reference in new issue
Block a user