aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorSean Dague2008-04-02 18:58:57 +0000
committerSean Dague2008-04-02 18:58:57 +0000
commit341664eabc20573da5254b95b23bd6f66e62baf1 (patch)
tree3bf761565ef6341ac139dde4b09bc5338c3263cb /OpenSim
parentremove really odd utf character at the front of this class (diff)
downloadopensim-SC-341664eabc20573da5254b95b23bd6f66e62baf1.zip
opensim-SC-341664eabc20573da5254b95b23bd6f66e62baf1.tar.gz
opensim-SC-341664eabc20573da5254b95b23bd6f66e62baf1.tar.bz2
opensim-SC-341664eabc20573da5254b95b23bd6f66e62baf1.tar.xz
from krtaylor
Fixe for Mantis 821
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 749761e..391fcf9 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -450,10 +450,13 @@ namespace OpenSim.Region.ScriptEngine.Common
450 public LLUUID uuidDetectedKey(int number) 450 public LLUUID uuidDetectedKey(int number)
451 { 451 {
452 LSL_Types.list SenseList = m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.GetSensorList(m_localID, m_itemID); 452 LSL_Types.list SenseList = m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.GetSensorList(m_localID, m_itemID);
453 if ((number >= 0) && (number < SenseList.Length)) 453 if (SenseList != null)
454 { 454 {
455 LLUUID SensedUUID = (LLUUID)SenseList.Data[number]; 455 if ((number >= 0) && (number < SenseList.Length))
456 return SensedUUID; 456 {
457 LLUUID SensedUUID = (LLUUID)SenseList.Data[number];
458 return SensedUUID;
459 }
457 } 460 }
458 return LLUUID.Zero; 461 return LLUUID.Zero;
459 } 462 }