Use cChunkDef::Height for Y coord comparison where applicable.
This commit is contained in:
committed by
Mattes D
parent
a893c53d46
commit
b268db4caa
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user