From 1b75e74a9eca2c05223a709d85f40fe6316f9b2b Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Tue, 13 Nov 2012 15:50:49 +0000 Subject: Fixed a valgrind error in lighting thread (uninitialized var value) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1039 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/LightingThread.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/LightingThread.cpp') diff --git a/source/LightingThread.cpp b/source/LightingThread.cpp index 071c1893a..7c9529298 100644 --- a/source/LightingThread.cpp +++ b/source/LightingThread.cpp @@ -402,6 +402,7 @@ void cLightingThread::PrepareBlockLight(void) { // Clear seeds: memset(m_IsSeed1, 0, sizeof(m_IsSeed1)); + memset(m_IsSeed2, 0, sizeof(m_IsSeed2)); m_NumSeeds = 0; // Walk every column that has all XZ neighbors, make a seed for each light-emitting block: -- cgit v1.2.3