From 37557da70666f12089d8db198c86dddfc93c4879 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Tue, 9 Sep 2008 14:51:30 +0000 Subject: From: alan_webb@us.ibm.com Fix an invalid bounds check in Builtin_Commands --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Common') 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 LSL_Types.list SenseList = m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.GetSensorList(m_localID, m_itemID); if (SenseList != null) { - if ((number >= 0) && (number <= SenseList.Length)) + if ((number >= 0) && (number < SenseList.Length)) { UUID SensedUUID = (UUID)SenseList.Data[number]; return resolveName(SensedUUID); -- cgit v1.1