Skip to content

Commit

Permalink
Fix normalization error
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsandscraps authored May 20, 2019
1 parent 54b44c8 commit a19a25e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ode/ode/src/odemath.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ int _dSafeNormalize4 (dVector4 a);
ODE_PURE_INLINE void _dNormalize3(dVector3 a)
{
int bNormalizationResult = _dSafeNormalize3(a);
if(bNormalizationResult==false)
throw(3);
dIVERIFY(bNormalizationResult);
}

ODE_PURE_INLINE void _dNormalize4(dVector4 a)
{
int bNormalizationResult = _dSafeNormalize4(a);
if(bNormalizationResult==false)
throw(4);
dIVERIFY(bNormalizationResult);
}

Expand Down

0 comments on commit a19a25e

Please sign in to comment.