diff options
author | Mattes D <github@xoft.cz> | 2014-11-19 16:52:56 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-19 16:52:56 +0100 |
commit | b177ff8ec58374945ee184800beaa4f24ee4cb35 (patch) | |
tree | 950455bce9ad580ed4f33abd54ad6c49a3abd677 /src/Noise | |
parent | cOctavedNoise: Added a forgotten comment. (diff) | |
download | cuberite-b177ff8ec58374945ee184800beaa4f24ee4cb35.tar cuberite-b177ff8ec58374945ee184800beaa4f24ee4cb35.tar.gz cuberite-b177ff8ec58374945ee184800beaa4f24ee4cb35.tar.bz2 cuberite-b177ff8ec58374945ee184800beaa4f24ee4cb35.tar.lz cuberite-b177ff8ec58374945ee184800beaa4f24ee4cb35.tar.xz cuberite-b177ff8ec58374945ee184800beaa4f24ee4cb35.tar.zst cuberite-b177ff8ec58374945ee184800beaa4f24ee4cb35.zip |
Diffstat (limited to 'src/Noise')
-rw-r--r-- | src/Noise/OctavedNoise.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Noise/OctavedNoise.h b/src/Noise/OctavedNoise.h index 592debbd3..855117289 100644 --- a/src/Noise/OctavedNoise.h +++ b/src/Noise/OctavedNoise.h @@ -47,13 +47,13 @@ public: int a_SizeX, int a_SizeY, ///< Count of the array, in each direction NOISE_DATATYPE a_StartX, NOISE_DATATYPE a_EndX, ///< Noise-space coords of the array in the X direction NOISE_DATATYPE a_StartY, NOISE_DATATYPE a_EndY, ///< Noise-space coords of the array in the Y direction - NOISE_DATATYPE * a_Workspace ///< Workspace that this function can use and trash. Must be valid. + NOISE_DATATYPE * a_Workspace = nullptr ///< Workspace that this function can use and trash. ) const { // Check that state is alright: if (m_Octaves.empty()) { - ASSERT(!"Perlin: No octaves to generate!"); + ASSERT(!"cOctavedNoise: No octaves to generate!"); return; } @@ -111,7 +111,7 @@ public: // Check that state is alright: if (m_Octaves.empty()) { - ASSERT(!"Perlin: No octaves to generate!"); + ASSERT(!"cOctavedNoise: No octaves to generate!"); return; } |