summaryrefslogtreecommitdiff
path: root/vector.c
diff options
context:
space:
mode:
Diffstat (limited to 'vector.c')
-rw-r--r--vector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vector.c b/vector.c
index 9ba7bc9..373e2a5 100644
--- a/vector.c
+++ b/vector.c
@@ -41,7 +41,7 @@ scalar vect_abs(vector v)
switch(v.type)
{
case SPH:
- return v.sph.r;
+ return fabs(v.sph.r);
case RECT:
return sqrt(v.rect.x * v.rect.x + v.rect.y * v.rect.y + v.rect.z * v.rect.z);
}