1
0

Added initializers for class members.

As reported by Coverity, these weren't initialized.
This commit is contained in:
Mattes D
2014-08-21 22:39:53 +02:00
parent 4358421cd4
commit 64fec204c4
14 changed files with 54 additions and 9 deletions

View File

@@ -239,7 +239,13 @@ bool cHeiGenCache::GetHeightAt(int a_ChunkX, int a_ChunkZ, int a_RelX, int a_Rel
cHeiGenClassic::cHeiGenClassic(int a_Seed) :
m_Seed(a_Seed),
m_Noise(a_Seed)
m_Noise(a_Seed),
m_HeightFreq1(1.0f),
m_HeightAmp1(1.0f),
m_HeightFreq2(0.5f),
m_HeightAmp2(0.5f),
m_HeightFreq3(0.1f),
m_HeightAmp3(0.1f)
{
}