diff options
author | Mattes D <github@xoft.cz> | 2014-11-18 09:23:45 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-18 09:23:45 +0100 |
commit | 8c54fc0f7d92af1fbb774fdc36d32f4640769333 (patch) | |
tree | 6135506673f20b96e1a7f2125e8f1cef06bc9cc4 /src/OctavedNoise.h | |
parent | Added cOctavedNoise template. (diff) | |
download | cuberite-8c54fc0f7d92af1fbb774fdc36d32f4640769333.tar cuberite-8c54fc0f7d92af1fbb774fdc36d32f4640769333.tar.gz cuberite-8c54fc0f7d92af1fbb774fdc36d32f4640769333.tar.bz2 cuberite-8c54fc0f7d92af1fbb774fdc36d32f4640769333.tar.lz cuberite-8c54fc0f7d92af1fbb774fdc36d32f4640769333.tar.xz cuberite-8c54fc0f7d92af1fbb774fdc36d32f4640769333.tar.zst cuberite-8c54fc0f7d92af1fbb774fdc36d32f4640769333.zip |
Diffstat (limited to 'src/OctavedNoise.h')
-rw-r--r-- | src/OctavedNoise.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OctavedNoise.h b/src/OctavedNoise.h index 86fb0ddb0..272a1051e 100644 --- a/src/OctavedNoise.h +++ b/src/OctavedNoise.h @@ -80,7 +80,7 @@ public: } // Add each octave: - for (cOctaves::const_iterator itr = m_Octaves.begin() + 1, end = m_Octaves.end(); itr != end; ++itr) + for (auto itr = m_Octaves.cbegin() + 1, end = m_Octaves.cend(); itr != end; ++itr) { // Generate the noise for the octave: itr->m_Noise.Generate2D( @@ -139,7 +139,7 @@ public: } // Add each octave: - for (cOctaves::const_iterator itr = m_Octaves.begin() + 1, end = m_Octaves.end(); itr != end; ++itr) + for (auto itr = m_Octaves.cbegin() + 1, end = m_Octaves.cend(); itr != end; ++itr) { // Generate the noise for the octave: itr->m_Noise.Generate3D( |