summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/MapSerializer.cpp
diff options
context:
space:
mode:
authorMoritz Borcherding <moritz.borcherding@web.de>2016-09-18 21:43:30 +0200
committerMattes D <github@xoft.cz>2016-09-27 14:32:20 +0200
commitb268db4caae1b5612ae0f3adabf164efc06de368 (patch)
treea85e615101f7b61f0ebd8c2f73c5068c7b112f88 /src/WorldStorage/MapSerializer.cpp
parentAPIDump: Fixed description for tolua functions. (diff)
downloadcuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar
cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.gz
cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.bz2
cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.lz
cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.xz
cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.zst
cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.zip
Diffstat (limited to 'src/WorldStorage/MapSerializer.cpp')
-rw-r--r--src/WorldStorage/MapSerializer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WorldStorage/MapSerializer.cpp b/src/WorldStorage/MapSerializer.cpp
index 3899ad505..c34efe507 100644
--- a/src/WorldStorage/MapSerializer.cpp
+++ b/src/WorldStorage/MapSerializer.cpp
@@ -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;
}