aboutsummaryrefslogtreecommitdiff
path: root/src/game/ScriptedCreature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/ScriptedCreature.cpp')
-rw-r--r--src/game/ScriptedCreature.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/ScriptedCreature.cpp b/src/game/ScriptedCreature.cpp
index 204b5b266b1..5868b7e2fe9 100644
--- a/src/game/ScriptedCreature.cpp
+++ b/src/game/ScriptedCreature.cpp
@@ -501,8 +501,7 @@ Player* ScriptedAI::GetPlayerAtMinimumRange(float fMinimumRange)
Trinity::PlayerSearcher<Trinity::PlayerAtMinimumRangeAway> searcher(m_creature, pPlayer, check);
TypeContainerVisitor<Trinity::PlayerSearcher<Trinity::PlayerAtMinimumRangeAway>, GridTypeMapContainer> visitor(searcher);
- CellLock<GridReadGuard> cell_lock(cell, pair);
- cell_lock->Visit(cell_lock, visitor, *(m_creature->GetMap()));
+ cell.Visit(pair, visitor, *(m_creature->GetMap()));
return pPlayer;
}