diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 9 |
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 | } |