mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[9738] Restore build on *nix
Also fix my typo in Unit::SelectRandomUnfriendlyTarget Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
0566ca0370
commit
d8736576d3
3 changed files with 6 additions and 6 deletions
|
|
@ -12935,7 +12935,7 @@ Unit* Unit::SelectRandomUnfriendlyTarget(Unit* except /*= NULL*/, float radius /
|
|||
|
||||
MaNGOS::AnyUnfriendlyUnitInObjectRangeCheck u_check(this, this, radius);
|
||||
MaNGOS::UnitListSearcher<MaNGOS::AnyUnfriendlyUnitInObjectRangeCheck> searcher(this, targets, u_check);
|
||||
Cell::VisitAllObjects(this, searcher, ATTACK_DISTANCE);
|
||||
Cell::VisitAllObjects(this, searcher, radius);
|
||||
|
||||
// remove current target
|
||||
if(except)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue