diff --git a/src/ode/ode/src/odemath.h b/src/ode/ode/src/odemath.h index c5f7a77b301..36ebb76e639 100644 --- a/src/ode/ode/src/odemath.h +++ b/src/ode/ode/src/odemath.h @@ -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); }