Core/Scripts: fix some /W4 warnings

This commit is contained in:
Aokromes committed 2017-06-12 17:49:39 +02:00
1 parent 5c4153ba98
commit 6c686876d0
8 files changed
+26 -30

No files matched your search

+2 -2
View File
@@ -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)