map-object: fix bogus if()-statement.

This commit is contained in:
Simon Budig 2017-01-30 16:26:59 +01:00
parent b8e7907a63
commit 53d4ad7c28
1 changed files with 6 additions and 1 deletions

View File

@ -286,7 +286,12 @@ V3_Unit (HVect v)
static HVect u = {0, 0, 0, 0};
double vlen = sqrt(V3_Norm(v));
if (vlen != 0.0) u.x = v.x/vlen; u.y = v.y/vlen; u.z = v.z/vlen;
if (vlen != 0.0)
{
u.x = v.x/vlen;
u.y = v.y/vlen;
u.z = v.z/vlen;
}
return (u);
}