summaryrefslogtreecommitdiffstats
path: root/source/Generating/ChunkDesc.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Generating/ChunkDesc.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/Generating/ChunkDesc.cpp b/source/Generating/ChunkDesc.cpp
index ff331e6e4..5c59055f7 100644
--- a/source/Generating/ChunkDesc.cpp
+++ b/source/Generating/ChunkDesc.cpp
@@ -558,9 +558,11 @@ void cChunkDesc::VerifyHeightmap(void)
{
for (int y = cChunkDef::Height - 1; y > 0; y--)
{
- if (GetBlockType(x, y, z) != E_BLOCK_AIR)
+ BLOCKTYPE BlockType = GetBlockType(x, y, z);
+ if (BlockType != E_BLOCK_AIR)
{
- ASSERT(GetHeight(x, z) == y);
+ int Height = GetHeight(x, z);
+ ASSERT(Height == y);
break;
}
} // for y