1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-12-25 06:05:45 +00:00

Fix possible crash when moving the Y-axis of camera out of bounds when zoomed out.

This was a regression from my earlier GridRender optimization patch.
This commit is contained in:
fgenesis 2012-09-17 03:32:18 +02:00
parent 82e0be355c
commit 755cc9c50f

View file

@ -108,6 +108,8 @@ void GridRender::onRender()
startY = 0;
if (endY >= MAX_GRID)
endY = MAX_GRID-1;
if (startY > endY)
return;
for (int x = startX; x <= endX; ++x)
{
const signed char *gridColumn = dsq->game->getGridColumn(x);