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.
This commit is contained in:
Melanie Thielker
2008-09-13 12:58:44 +00:00
parent 8a8b01d1b8
commit 7f3a98b76d

View File

@@ -448,6 +448,10 @@ namespace OpenSim.Region.ScriptEngine.Shared
{
return (LSL_Types.key)m_data[itemIndex];
}
else if (m_data[itemIndex] is String)
{
return new LSL_Types.LSLString((string)m_data[itemIndex]);
}
else
{
return (LSL_Types.LSLString)m_data[itemIndex];