From fe00c99c9518be022f8faaa52899e68fc0738ce4 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 21 Dec 2014 21:59:44 +0100 Subject: cEndGen: Fixed unitialized member variables. Fixes CID 43671. --- src/Generating/EndGen.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Generating/EndGen.cpp') diff --git a/src/Generating/EndGen.cpp b/src/Generating/EndGen.cpp index 89d6117bb..bc26edb20 100644 --- a/src/Generating/EndGen.cpp +++ b/src/Generating/EndGen.cpp @@ -39,7 +39,9 @@ cEndGen::cEndGen(int a_Seed) : m_IslandSizeZ(256), m_FrequencyX(80), m_FrequencyY(80), - m_FrequencyZ(80) + m_FrequencyZ(80), + m_LastChunkX(0x7fffffff), // Use dummy coords that won't ever be used by real chunks + m_LastChunkZ(0x7fffffff) { m_Perlin.AddOctave(1, 1); m_Perlin.AddOctave(2, 0.5); -- cgit v1.2.3 From 2557eab95738128eb758f967c52ea977c3e486e0 Mon Sep 17 00:00:00 2001 From: Kirill Kirilenko Date: Fri, 23 Jan 2015 18:38:23 +0300 Subject: Fixed defect #43671 in Coverity list. --- src/Generating/EndGen.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Generating/EndGen.cpp') diff --git a/src/Generating/EndGen.cpp b/src/Generating/EndGen.cpp index bc26edb20..c559e765f 100644 --- a/src/Generating/EndGen.cpp +++ b/src/Generating/EndGen.cpp @@ -40,6 +40,10 @@ cEndGen::cEndGen(int a_Seed) : m_FrequencyX(80), m_FrequencyY(80), m_FrequencyZ(80), + m_MinChunkX(0), + m_MaxChunkX(0), + m_MinChunkZ(0), + m_MaxChunkZ(0), m_LastChunkX(0x7fffffff), // Use dummy coords that won't ever be used by real chunks m_LastChunkZ(0x7fffffff) { -- cgit v1.2.3