1
0

cNoise3DComposable: Fixed unitialized member variables.

Fixes CID 43665.
This commit is contained in:
Mattes D 2014-12-21 21:56:34 +01:00
parent d4c3821eca
commit c9697083e5

View File

@ -379,7 +379,9 @@ cNoise3DComposable::cNoise3DComposable(int a_Seed) :
m_ChoiceNoise(a_Seed),
m_DensityNoiseA(a_Seed + 1),
m_DensityNoiseB(a_Seed + 2),
m_BaseNoise(a_Seed + 3)
m_BaseNoise(a_Seed + 3),
m_LastChunkX(0x7fffffff), // Use dummy coords that won't ever be used by real chunks
m_LastChunkZ(0x7fffffff)
{
}