diff options
author | Melanie Thielker | 2008-09-19 17:34:35 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-19 17:34:35 +0000 |
commit | 5d3fe9f8cdcb6c7b6e43ec817b3c955d36f7fcee (patch) | |
tree | 9342e126af65c3781b450e35c7fd4fc3c68c45fc /OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |
parent | Mantis #2217 (diff) | |
download | opensim-SC-5d3fe9f8cdcb6c7b6e43ec817b3c955d36f7fcee.zip opensim-SC-5d3fe9f8cdcb6c7b6e43ec817b3c955d36f7fcee.tar.gz opensim-SC-5d3fe9f8cdcb6c7b6e43ec817b3c955d36f7fcee.tar.bz2 opensim-SC-5d3fe9f8cdcb6c7b6e43ec817b3c955d36f7fcee.tar.xz |
Guard LLRezObject against NaN
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index dbb61fd..6623165 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -2318,6 +2318,8 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2318 | public void llRezAtRoot(string inventory, LSL_Types.Vector3 pos, LSL_Types.Vector3 vel, LSL_Types.Quaternion rot, int param) | 2318 | public void llRezAtRoot(string inventory, LSL_Types.Vector3 pos, LSL_Types.Vector3 vel, LSL_Types.Quaternion rot, int param) |
2319 | { | 2319 | { |
2320 | m_host.AddScriptLPS(1); | 2320 | m_host.AddScriptLPS(1); |
2321 | if (Double.IsNaN(rot.x) || Double.IsNaN(rot.y) || Double.IsNaN(rot.z) || Double.IsNaN(rot.s)) | ||
2322 | return; | ||
2321 | bool found = false; | 2323 | bool found = false; |
2322 | 2324 | ||
2323 | float dist = (float)llVecDist(llGetPos(), pos); | 2325 | float dist = (float)llVecDist(llGetPos(), pos); |