diff options
author | Shauren <shauren.trinity@gmail.com> | 2017-05-13 19:37:33 +0200 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2017-06-19 13:16:13 -0300 |
commit | d6201e5dbb7fa7ca8b47ffa6c0d30fa38dceada5 (patch) | |
tree | 24f77462be2079c892dd604b4a1979f476e56e3c /src/server/game/Spells/Spell.cpp | |
parent | 7874bee7bfb70e0e039f91173cff212e9572de09 (diff) |
Core/Grids: Ported cmangos/mangos-wotlk@ea99457e50790acde8928aa0f3dc4a9c096b4a8c
(cherry picked from commit 9299e9bde087af7e5d777d5a55a3b79d2b63c48e)
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 1b16666eb92..f080a1cb0c3 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -1751,18 +1751,13 @@ void Spell::SearchTargets(SEARCHER& searcher, uint32 containerMask, Unit* refere Cell cell(p); cell.SetNoCreate(); - Map& map = *(referer->GetMap()); + Map* map = referer->GetMap(); if (searchInWorld) - { - TypeContainerVisitor<SEARCHER, WorldTypeMapContainer> world_object_notifier(searcher); - cell.Visit(p, world_object_notifier, map, radius, x, y); - } + Cell::VisitWorldObjects(x, y, map, searcher, radius); + if (searchInGrid) - { - TypeContainerVisitor<SEARCHER, GridTypeMapContainer > grid_object_notifier(searcher); - cell.Visit(p, grid_object_notifier, map, radius, x, y); - } + Cell::VisitGridObjects(x, y, map, searcher, radius); } } |