aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 03851b6..50bd386 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -460,12 +460,18 @@ namespace OpenSim.Region.ScriptEngine.Common
460 IScript script = null; 460 IScript script = null;
461 461
462 if ((sm = m_ScriptEngine.m_ScriptManager) != null) 462 if ((sm = m_ScriptEngine.m_ScriptManager) != null)
463 {
463 if (sm.Scripts.ContainsKey(m_localID)) 464 if (sm.Scripts.ContainsKey(m_localID))
465 {
464 if ((script = sm.GetScript(m_localID, m_itemID)) != null) 466 if ((script = sm.GetScript(m_localID, m_itemID)) != null)
467 {
465 if (script.llDetectParams._key[0] != null) 468 if (script.llDetectParams._key[0] != null)
466 return new LLUUID( 469 {
467 script.llDetectParams._key[0] 470 return new LLUUID(script.llDetectParams._key[0]);
468 ); 471 }
472 }
473 }
474 }
469 } 475 }
470 return LLUUID.Zero; 476 return LLUUID.Zero;
471 } 477 }