summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/WSSAnvil.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-06 18:59:17 +0200
committerMattes D <github@xoft.cz>2014-09-06 18:59:17 +0200
commit0a651b9fd83f078a73429f02603144e80a05148d (patch)
treecb9b30cc975b884dd2da97271da6570c4eb70537 /src/WorldStorage/WSSAnvil.cpp
parentAlpha-sorted protocol 1.7 senders. (diff)
downloadcuberite-0a651b9fd83f078a73429f02603144e80a05148d.tar
cuberite-0a651b9fd83f078a73429f02603144e80a05148d.tar.gz
cuberite-0a651b9fd83f078a73429f02603144e80a05148d.tar.bz2
cuberite-0a651b9fd83f078a73429f02603144e80a05148d.tar.lz
cuberite-0a651b9fd83f078a73429f02603144e80a05148d.tar.xz
cuberite-0a651b9fd83f078a73429f02603144e80a05148d.tar.zst
cuberite-0a651b9fd83f078a73429f02603144e80a05148d.zip
Diffstat (limited to '')
-rw-r--r--src/WorldStorage/WSSAnvil.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp
index 2500b5dea..fe309ce4e 100644
--- a/src/WorldStorage/WSSAnvil.cpp
+++ b/src/WorldStorage/WSSAnvil.cpp
@@ -623,6 +623,8 @@ void cWSSAnvil::LoadBlockEntitiesFromNBT(cBlockEntityList & a_BlockEntities, con
cBlockEntity * cWSSAnvil::LoadBlockEntityFromNBT(const cParsedNBT & a_NBT, int a_Tag, int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
{
+ ASSERT((a_BlockY >= 0) && (a_BlockY < cChunkDef::Height));
+
// Load the specific BlockEntity type:
switch (a_BlockType)
{