1
0

CopyPaste Error

Fixes CID 70460.
This commit is contained in:
worktycho 2014-07-13 15:32:44 +01:00
parent 64697f0cab
commit 132b367316

View File

@ -311,7 +311,7 @@ void cChunkDesc::ReadBlockArea(cBlockArea & a_Dest, int a_MinRelX, int a_MaxRelX
LOGWARNING("%s: MaxRelY less than zero, adjusting to zero", __FUNCTION__);
a_MaxRelY = 0;
}
else if (a_MinRelY >= cChunkDef::Height)
else if (a_MaxRelY >= cChunkDef::Height)
{
LOGWARNING("%s: MaxRelY more than chunk height, adjusting to chunk height", __FUNCTION__);
a_MaxRelY = cChunkDef::Height - 1;