mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
Merge branch 'azerothcore:master' into Playerbot
This commit is contained in:
@@ -359,7 +359,7 @@ void Map::SwitchGridContainers(Creature* obj, bool on)
|
||||
|
||||
LOG_DEBUG("maps", "Switch object {} from grid[{}, {}] {}", obj->GetGUID().ToString(), cell.GridX(), cell.GridY(), on);
|
||||
NGridType* ngrid = getNGrid(cell.GridX(), cell.GridY());
|
||||
ASSERT(ngrid != nullptr);
|
||||
ASSERT(ngrid);
|
||||
|
||||
GridType& grid = ngrid->GetGridType(cell.CellX(), cell.CellY());
|
||||
|
||||
@@ -397,7 +397,7 @@ void Map::SwitchGridContainers(GameObject* obj, bool on)
|
||||
|
||||
//LOG_DEBUG(LOG_FILTER_MAPS, "Switch object {} from grid[{}, {}] {}", obj->GetGUID().ToString(), cell.data.Part.grid_x, cell.data.Part.grid_y, on);
|
||||
NGridType* ngrid = getNGrid(cell.GridX(), cell.GridY());
|
||||
ASSERT(ngrid != nullptr);
|
||||
ASSERT(ngrid);
|
||||
|
||||
GridType& grid = ngrid->GetGridType(cell.CellX(), cell.CellY());
|
||||
|
||||
@@ -471,7 +471,7 @@ bool Map::EnsureGridLoaded(const Cell& cell)
|
||||
EnsureGridCreated(GridCoord(cell.GridX(), cell.GridY()));
|
||||
NGridType* grid = getNGrid(cell.GridX(), cell.GridY());
|
||||
|
||||
ASSERT(grid != nullptr);
|
||||
ASSERT(grid);
|
||||
if (!isGridObjectDataLoaded(cell.GridX(), cell.GridY()))
|
||||
{
|
||||
//if (!isGridObjectDataLoaded(cell.GridX(), cell.GridY()))
|
||||
|
||||
Reference in New Issue
Block a user