diff --git a/CHANGELOG.md b/CHANGELOG.md index a3374ad7..5d30a13d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ - Bug [#37](https://github.com/DanielChappuis/reactphysics3d/issues/37) has been fixed. - Bug [#62](https://github.com/DanielChappuis/reactphysics3d/issues/62) has been fixed. - Bug [#63](https://github.com/DanielChappuis/reactphysics3d/issues/63) has been fixed. + - Bug [#82](https://github.com/DanielChappuis/reactphysics3d/issues/82) has been fixed. - Bug: the free() method was called in PoolAllocator instead of release() method of base allocator. ## Version 0.7.0 (May 1, 2018) diff --git a/src/mathematics/Matrix3x3.cpp b/src/mathematics/Matrix3x3.cpp index 74ffd9bf..5fb97376 100644 --- a/src/mathematics/Matrix3x3.cpp +++ b/src/mathematics/Matrix3x3.cpp @@ -48,7 +48,7 @@ Matrix3x3 Matrix3x3::getInverse() const { decimal determinant = getDeterminant(); // Check if the determinant is equal to zero - assert(std::abs(determinant) > MACHINE_EPSILON); + assert(determinant != decimal(0.0)); decimal invDeterminant = decimal(1.0) / determinant;