From 8aba79faf934b549267559351661beb0508ac9c4 Mon Sep 17 00:00:00 2001 From: Jan Date: Sat, 22 Jan 2022 14:16:25 +0100 Subject: [PATCH] Fix SndCurveDumper wrong assertion --- src/ObjWriting/Dumping/SndCurve/SndCurveDumper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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";