diff --git a/sources/reactphysics3d/engine/ConstraintSolver.cpp b/sources/reactphysics3d/engine/ConstraintSolver.cpp index 890c63f2..b5b6920f 100644 --- a/sources/reactphysics3d/engine/ConstraintSolver.cpp +++ b/sources/reactphysics3d/engine/ConstraintSolver.cpp @@ -65,6 +65,8 @@ void ConstraintSolver::allocate() { } } + assert(nbConstraints > 0); + // Compute the number of bodies that are part of some active constraint nbBodies = bodyNumberMapping.size();