diff options
author | madmaxoft <github@xoft.cz> | 2014-04-28 20:16:37 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-04-28 20:16:37 +0200 |
commit | 8ae472df864786417ce3e9ed8df186da2960bc02 (patch) | |
tree | aecc48e1051d91638ed84250ec06ef764f12a2ab /src/Noise.cpp | |
parent | Merge pull request #954 from mc-server/projectiles-split (diff) | |
parent | Removed static from combinators. (diff) | |
download | cuberite-8ae472df864786417ce3e9ed8df186da2960bc02.tar cuberite-8ae472df864786417ce3e9ed8df186da2960bc02.tar.gz cuberite-8ae472df864786417ce3e9ed8df186da2960bc02.tar.bz2 cuberite-8ae472df864786417ce3e9ed8df186da2960bc02.tar.lz cuberite-8ae472df864786417ce3e9ed8df186da2960bc02.tar.xz cuberite-8ae472df864786417ce3e9ed8df186da2960bc02.tar.zst cuberite-8ae472df864786417ce3e9ed8df186da2960bc02.zip |
Diffstat (limited to 'src/Noise.cpp')
-rw-r--r-- | src/Noise.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Noise.cpp b/src/Noise.cpp index 95a022ea3..13a194938 100644 --- a/src/Noise.cpp +++ b/src/Noise.cpp @@ -608,6 +608,8 @@ void cCubicNoise::Generate2D( NOISE_DATATYPE a_StartY, NOISE_DATATYPE a_EndY ///< Noise-space coords of the array in the Y direction ) const { + ASSERT(a_SizeX > 0); + ASSERT(a_SizeY > 0); ASSERT(a_SizeX < MAX_SIZE); ASSERT(a_SizeY < MAX_SIZE); ASSERT(a_StartX < a_EndX); |