From 367f6b3cac8fb3ccf42987fcd678c42540fec37e Mon Sep 17 00:00:00 2001 From: "chappuis.daniel" Date: Mon, 19 Jul 2010 19:27:42 +0000 Subject: [PATCH] git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@358 92aac97c-a6ce-11dd-a772-7fcde58d38e6 --- sources/reactphysics3d/engine/ConstraintSolver.cpp | 2 ++ 1 file changed, 2 insertions(+) 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();