From 7f3a98b76da6fdbba069511d08bf88b63a604e5a Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 13 Sep 2008 12:58:44 +0000 Subject: 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. --- OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs') diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index 9f69ebb..572debc 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs @@ -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]; -- cgit v1.1