1
0

Use cChunkDef::Height for Y coord comparison where applicable.

This commit is contained in:
Moritz Borcherding
2016-09-18 21:43:30 +02:00
committed by Mattes D
parent a893c53d46
commit b268db4caa
7 changed files with 10 additions and 10 deletions

View File

@@ -163,7 +163,7 @@ bool cMapSerializer::LoadMapFromNBT(const cParsedNBT & a_NBT)
if ((CurrLine >= 0) && (a_NBT.GetType(CurrLine) == TAG_Short))
{
unsigned int Height = static_cast<unsigned int>(a_NBT.GetShort(CurrLine));
if (Height >= 256)
if (Height >= cChunkDef::Height)
{
return false;
}