1
0

Fixes to uninitallsed array access in Noise.cpp

CID 43634, 43634
This commit is contained in:
Tycho 2014-04-27 13:20:00 -07:00
parent 71c51783f3
commit 077179277c

View File

@ -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);