warning fix

This commit is contained in:
Ovahlord
2022-01-10 01:57:27 +01:00
parent c95b81063c
commit cd365a880d

View File

@@ -735,7 +735,8 @@ struct npc_atramedes_reverberating_flame : public NullCreatureAI
Unit* target = ObjectAccessor::GetUnit(*me, me->GetTarget());
if (!target || !target->IsAlive())
{
if (target = me->SelectNearestPlayer(100.f))
target = me->SelectNearestPlayer(100.f);
if (target)
trackTarget(target);
}
else