Fixed another mistake in c6881bd8a4

Thx @zorix
This commit is contained in:
joschiwald
2017-11-19 19:45:20 +01:00
parent 9a9d4aa528
commit 3a254dd0da

View File

@@ -597,7 +597,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);
Trinity::UnitLastSearcher<Trinity::NearestUnfriendlyNoTotemUnitInObjectRangeCheck> searcher(this, target, checker);
Cell::VisitAllObjects(this, searcher, radius);
}
else