diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs index 63bef7c..2e6a7db 100644 --- a/OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs +++ b/OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs | |||
@@ -243,6 +243,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
243 | internal void ProcessFloatVehicleParam(Vehicle pParam, float pValue) | 243 | internal void ProcessFloatVehicleParam(Vehicle pParam, float pValue) |
244 | { | 244 | { |
245 | float len; | 245 | float len; |
246 | if(float.IsNaN(pValue) || float.IsInfinity(pValue)) | ||
247 | return; | ||
246 | 248 | ||
247 | switch (pParam) | 249 | switch (pParam) |
248 | { | 250 | { |
@@ -374,6 +376,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
374 | internal void ProcessVectorVehicleParam(Vehicle pParam, Vector3 pValue) | 376 | internal void ProcessVectorVehicleParam(Vehicle pParam, Vector3 pValue) |
375 | { | 377 | { |
376 | float len; | 378 | float len; |
379 | if(!pValue.IsFinite()) | ||
380 | return; | ||
377 | 381 | ||
378 | switch (pParam) | 382 | switch (pParam) |
379 | { | 383 | { |