summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-04-27 22:20:00 +0200
committerTycho <work.tycho+git@gmail.com>2014-04-27 22:20:00 +0200
commit077179277c5f3db46c5b805ae61506b99de7e851 (patch)
tree63191fd93525dadc032667a6843c115e315ffb59
parentInitalize counter in fastrandom (diff)
downloadcuberite-077179277c5f3db46c5b805ae61506b99de7e851.tar
cuberite-077179277c5f3db46c5b805ae61506b99de7e851.tar.gz
cuberite-077179277c5f3db46c5b805ae61506b99de7e851.tar.bz2
cuberite-077179277c5f3db46c5b805ae61506b99de7e851.tar.lz
cuberite-077179277c5f3db46c5b805ae61506b99de7e851.tar.xz
cuberite-077179277c5f3db46c5b805ae61506b99de7e851.tar.zst
cuberite-077179277c5f3db46c5b805ae61506b99de7e851.zip
Diffstat (limited to '')
-rw-r--r--src/Noise.cpp2
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);