diff --git a/src/pe/collision/EPA.cpp b/src/pe/collision/EPA.cpp index b20d776dd6e1904a7c1f081b1a51b8db50bc14dc..ed40e41535c487dadf7abc7f137eadb1993dfc22 100644 --- a/src/pe/collision/EPA.cpp +++ b/src/pe/collision/EPA.cpp @@ -826,7 +826,7 @@ inline bool EPA::searchTetrahedron(GeomPrimitive &geom1, GeomPrimitive &geom2, s } } - while(pointIndexToRemove != 0); + while(pointIndexToRemove != -1); //std::cerr << "Found Tet after " << loopCount << " searches." << std::endl; //Build final tetrahedron