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
Melanie Thielker 2008-09-13 12:58:44 +00:00
parent 8a8b01d1b8
commit 7f3a98b76d
1 changed files with 4 additions and 0 deletions

View File

@ -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];