Fixed cherry pick fail in c6881bd8a4

This commit is contained in:
joschiwald
2017-11-11 21:45:41 +01:00
parent f2a3382c8d
commit eac1648181

View File

@@ -598,9 +598,7 @@ void GameObject::Update(uint32 diff)
// Hunter trap: Search units which are unfriendly to the trap's owner
Trinity::NearestUnfriendlyNoTotemUnitInObjectRangeCheck checker(this, owner, radius);
Trinity::UnitSearcher<Trinity::NearestUnfriendlyNoTotemUnitInObjectRangeCheck> searcher(this, target, checker);
Cell::VisitGridObjects(this, searcher, radius);
if (!target)
Cell::VisitWorldObjects(this, searcher, radius);
Cell::VisitAllObjects(this, searcher, radius);
}
else
{