Skip to content

Commit

Permalink
NPCBots: Fix build 1
Browse files Browse the repository at this point in the history
  • Loading branch information
trickerer committed Oct 15, 2023
1 parent 505ecc9 commit 3d9c7f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/game/Maps/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3271,7 +3271,7 @@ void Map::AddToActive(Creature* c)
getNGrid(p.x_coord, p.y_coord)->incUnloadActiveLock();
//npcbot
else if (c->IsNPCBot())
EnsureGridLoadedForActiveObject(Cell(Trinity::ComputeCellCoord(c->GetPositionX(), c->GetPositionY())), c);
EnsureGridLoadedForActiveObject(Cell(Acore::ComputeCellCoord(c->GetPositionX(), c->GetPositionY())), c);
//end npcbot
else
{
Expand Down Expand Up @@ -3320,7 +3320,7 @@ void Map::RemoveFromActive(Creature* c)
getNGrid(p.x_coord, p.y_coord)->decUnloadActiveLock();
//npcbot
else if (c->IsNPCBot())
EnsureGridLoaded(Cell(Trinity::ComputeCellCoord(c->GetPositionX(), c->GetPositionY())));
EnsureGridLoaded(Cell(Acore::ComputeCellCoord(c->GetPositionX(), c->GetPositionY())));
//end npcbot
else
{
Expand Down

0 comments on commit 3d9c7f7

Please sign in to comment.