summary refs log tree commit diff
path: root/src/PhysicsMath.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/PhysicsMath.h')
-rw-r--r--src/PhysicsMath.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PhysicsMath.h b/src/PhysicsMath.h
index 7eb13c5..c6c320c 100644
--- a/src/PhysicsMath.h
+++ b/src/PhysicsMath.h
@@ -452,7 +452,8 @@ inline	Matrix3x3	Matrix3x3::Inverse(void)
 
 				e31*e22*e13;
 
-	if (d == 0) d = 1;
+	if (abs(d) < 0.01f)
+		d = 1;
 
 	return	Matrix3x3(	(e22*e33-e23*e32)/d,