add a bit more protection for broken scripts like ingen-e3s-v1.33

0.9.0-post-fixes
UbitUmarov 2017-05-21 01:52:27 +01:00
parent c7fdb2ec53
commit 319ccf17c8
1 changed files with 4 additions and 0 deletions

View File

@ -243,6 +243,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde
internal void ProcessFloatVehicleParam(Vehicle pParam, float pValue)
{
float len;
if(float.IsNaN(pValue) || float.IsInfinity(pValue))
return;
switch (pParam)
{
@ -374,6 +376,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde
internal void ProcessVectorVehicleParam(Vehicle pParam, Vector3 pValue)
{
float len;
if(!pValue.IsFinite())
return;
switch (pParam)
{