From 50a94f972d26ee15fc22cce657d13023d1022905 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 26 Jan 2021 09:41:55 +0000 Subject: Fix debug macro situation (#5114) Use the standard NDEBUG. --- src/Chunk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Chunk.cpp') diff --git a/src/Chunk.cpp b/src/Chunk.cpp index e8757158e..94bb425e1 100644 --- a/src/Chunk.cpp +++ b/src/Chunk.cpp @@ -338,7 +338,7 @@ void cChunk::SetAllData(cSetChunkData & a_SetChunkData) m_BlockEntities = std::move(a_SetChunkData.GetBlockEntities()); // Check that all block entities have a valid blocktype at their respective coords (DEBUG-mode only): - #ifdef _DEBUG + #ifndef NDEBUG for (auto & KeyPair : m_BlockEntities) { cBlockEntity * Block = KeyPair.second.get(); @@ -346,7 +346,7 @@ void cChunk::SetAllData(cSetChunkData & a_SetChunkData) BLOCKTYPE WorldBlockType = GetBlock(Block->GetRelX(), Block->GetPosY(), Block->GetRelZ()); ASSERT(WorldBlockType == EntityBlockType); } // for KeyPair - m_BlockEntities - #endif // _DEBUG + #endif // !NDEBUG // Set all block entities' World variable: for (auto & KeyPair : m_BlockEntities) -- cgit v1.2.3