Core/Misc: Improve assert message with more detail

This commit is contained in:
Shauren
2020-04-21 10:50:42 +02:00
parent 948b5905f7
commit 9407f9bdfa

View File

@@ -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];
}