1
0

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
This commit is contained in:
madmaxoft 2012-11-13 15:50:49 +00:00
parent f32091f98c
commit 1b75e74a9e

View File

@ -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: