diff --git a/include/FluidSCWrapper.hpp b/include/FluidSCWrapper.hpp index aaeeee6..cd1c8fc 100644 --- a/include/FluidSCWrapper.hpp +++ b/include/FluidSCWrapper.hpp @@ -41,8 +41,9 @@ struct FloatControlsIter float next() { - assert(mCount + 1 < mSize); - return *mValues[mCount++]; + assert(mCount < mSize && "Boundary error fail horror"); + float f = *mValues[mCount++]; + return f; } void reset(float** vals)