diff options
author | Sean Dague | 2008-09-09 14:51:30 +0000 |
---|---|---|
committer | Sean Dague | 2008-09-09 14:51:30 +0000 |
commit | 37557da70666f12089d8db198c86dddfc93c4879 (patch) | |
tree | 7fa77f20c111b7c53e17a92388e194f5b2c5244d /OpenSim | |
parent | * Adds OnGenericMessage and SendGenericMessage functionality to IClientAPI. (diff) | |
download | opensim-SC-37557da70666f12089d8db198c86dddfc93c4879.zip opensim-SC-37557da70666f12089d8db198c86dddfc93c4879.tar.gz opensim-SC-37557da70666f12089d8db198c86dddfc93c4879.tar.bz2 opensim-SC-37557da70666f12089d8db198c86dddfc93c4879.tar.xz |
From: alan_webb@us.ibm.com
Fix an invalid bounds check in Builtin_Commands
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 9405198..a58a480 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -705,7 +705,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
705 | LSL_Types.list SenseList = m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.GetSensorList(m_localID, m_itemID); | 705 | LSL_Types.list SenseList = m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.GetSensorList(m_localID, m_itemID); |
706 | if (SenseList != null) | 706 | if (SenseList != null) |
707 | { | 707 | { |
708 | if ((number >= 0) && (number <= SenseList.Length)) | 708 | if ((number >= 0) && (number < SenseList.Length)) |
709 | { | 709 | { |
710 | UUID SensedUUID = (UUID)SenseList.Data[number]; | 710 | UUID SensedUUID = (UUID)SenseList.Data[number]; |
711 | return resolveName(SensedUUID); | 711 | return resolveName(SensedUUID); |