diff --git a/src/ObjWriting/Dumping/SndCurve/SndCurveDumper.cpp b/src/ObjWriting/Dumping/SndCurve/SndCurveDumper.cpp index 5480db86..789a5987 100644 --- a/src/ObjWriting/Dumping/SndCurve/SndCurveDumper.cpp +++ b/src/ObjWriting/Dumping/SndCurve/SndCurveDumper.cpp @@ -27,7 +27,7 @@ void SndCurveDumper::Init(const size_t totalKnots) void SndCurveDumper::WriteKnot(const float x, const float y) { - assert(m_current_knot >= m_total_knots); + assert(m_current_knot < m_total_knots); m_stream << "\n" << std::fixed << std::setprecision(m_precision) << x << " " << y; @@ -36,7 +36,7 @@ void SndCurveDumper::WriteKnot(const float x, const float y) void SndCurveDumper::WriteKnot(const double x, const double y) { - assert(m_current_knot >= m_total_knots); + assert(m_current_knot < m_total_knots); m_stream << x << " " << y << "\n";