mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Misc: Improve assert message with more detail
This commit is contained in:
@@ -686,7 +686,7 @@ class TC_GAME_API Map : public GridRefManager<NGridType>
|
||||
|
||||
NGridType* getNGrid(uint32 x, uint32 y) const
|
||||
{
|
||||
ASSERT(x < MAX_NUMBER_OF_GRIDS && y < MAX_NUMBER_OF_GRIDS);
|
||||
ASSERT(x < MAX_NUMBER_OF_GRIDS && y < MAX_NUMBER_OF_GRIDS, "x = %u, y = %u", x, y);
|
||||
return i_grids[x][y];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user