From bd568ed089a763f58188382175241f11bee690b7 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Tue, 17 Dec 2013 19:45:34 +0100 Subject: cBlockArea: origin is initialized in the constructor and the loader. --- src/BlockArea.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/BlockArea.cpp') diff --git a/src/BlockArea.cpp b/src/BlockArea.cpp index 5c15adfef..c9443c702 100644 --- a/src/BlockArea.cpp +++ b/src/BlockArea.cpp @@ -161,6 +161,9 @@ static void MergeCombinatorLake(BLOCKTYPE & a_DstType, BLOCKTYPE a_SrcType, NIBB // cBlockArea: cBlockArea::cBlockArea(void) : + m_OriginX(0), + m_OriginY(0), + m_OriginZ(0), m_SizeX(0), m_SizeY(0), m_SizeZ(0), @@ -190,6 +193,9 @@ void cBlockArea::Clear(void) delete[] m_BlockMetas; m_BlockMetas = NULL; delete[] m_BlockLight; m_BlockLight = NULL; delete[] m_BlockSkyLight; m_BlockSkyLight = NULL; + m_OriginX = 0; + m_OriginY = 0; + m_OriginZ = 0; m_SizeX = 0; m_SizeY = 0; m_SizeZ = 0; -- cgit v1.2.3