Fix an invalid bounds check in Builtin_Commands0.6.0-stable
parent
c95bdb83c0
commit
37557da706
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue