We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cdf75c commit 9330797Copy full SHA for 9330797
src/game/client/components/tclient/outlines.cpp
@@ -159,8 +159,8 @@ void COutlines::OnRender()
159
}
160
161
auto GetTile = [&](int x, int y) {
162
- x = std::clamp(x, 0, m_MapDataSize.x);
163
- y = std::clamp(y, 0, m_MapDataSize.y);
+ x = std::clamp(x, 0, m_MapDataSize.x - 1);
+ y = std::clamp(y, 0, m_MapDataSize.y - 1);
164
return m_pMapData[y * m_MapDataSize.x + x];
165
};
166
0 commit comments