OctavedNoise: Unshadowed a local variable.
This commit is contained in:
parent
a6ed5cb1d8
commit
9f24c0c4da
@ -124,8 +124,9 @@ public:
|
||||
}
|
||||
|
||||
// Generate the first octave directly into array:
|
||||
const cOctave & FirstOctave = m_Octaves.front();
|
||||
int ArrayCount = a_SizeX * a_SizeY * a_SizeZ;
|
||||
{
|
||||
const cOctave & FirstOctave = m_Octaves.front();
|
||||
FirstOctave.m_Noise.Generate3D(
|
||||
a_Workspace, a_SizeX, a_SizeY, a_SizeZ,
|
||||
a_StartX * FirstOctave.m_Frequency, a_EndX * FirstOctave.m_Frequency,
|
||||
@ -137,6 +138,7 @@ public:
|
||||
{
|
||||
a_Array[i] = a_Workspace[i] * Amplitude;
|
||||
}
|
||||
}
|
||||
|
||||
// Add each octave:
|
||||
for (auto itr = m_Octaves.cbegin() + 1, end = m_Octaves.cend(); itr != end; ++itr)
|
||||
|
Loading…
Reference in New Issue
Block a user