Fix string parameters to functions taking lists as arguments. LSL
functions return CLI strings, which, in the case of lists, don't get wrapped. Therefore, the list had to be able to deal with that CLI type here. The correct fix would be to change all LSL function returns to LSL types.0.6.0-stable
parent
8a8b01d1b8
commit
7f3a98b76d
|
@ -448,6 +448,10 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||||
{
|
{
|
||||||
return (LSL_Types.key)m_data[itemIndex];
|
return (LSL_Types.key)m_data[itemIndex];
|
||||||
}
|
}
|
||||||
|
else if (m_data[itemIndex] is String)
|
||||||
|
{
|
||||||
|
return new LSL_Types.LSLString((string)m_data[itemIndex]);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return (LSL_Types.LSLString)m_data[itemIndex];
|
return (LSL_Types.LSLString)m_data[itemIndex];
|
||||||
|
|
Loading…
Reference in New Issue