Core/Misc: fixed another bunch of GCC warnings

This commit is contained in:
Ovahlord committed 2023-07-08 21:33:08 +02:00
1 parent 3de1f9a104
commit b489a905e1
10 files changed
+54 -62

No files matched your search

@@ -997,7 +997,7 @@ void GameObject::Update(uint32 diff)
Unit* target = nullptr;
/// @todo this hack with search required until GO casting not implemented
if (Unit* owner = GetOwner())
if (GetOwner())
{
// Hunter trap: Search units which are unfriendly to the trap's owner
Trinity::NearestAttackableNoTotemUnitInObjectRangeCheck checker(this, radius);