Fix an invalid bounds check in Builtin_Commands
0.6.0-stable
Sean Dague 2008-09-09 14:51:30 +00:00
parent c95bdb83c0
commit 37557da706
1 changed files with 1 additions and 1 deletions

View File

@ -705,7 +705,7 @@ namespace OpenSim.Region.ScriptEngine.Common
LSL_Types.list SenseList = m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.GetSensorList(m_localID, m_itemID); LSL_Types.list SenseList = m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.GetSensorList(m_localID, m_itemID);
if (SenseList != null) if (SenseList != null)
{ {
if ((number >= 0) && (number <= SenseList.Length)) if ((number >= 0) && (number < SenseList.Length))
{ {
UUID SensedUUID = (UUID)SenseList.Data[number]; UUID SensedUUID = (UUID)SenseList.Data[number];
return resolveName(SensedUUID); return resolveName(SensedUUID);