return as object[]

master
Christopher 2020-06-19 11:05:12 +02:00
parent 06495ab3e6
commit 1c19deb736
1 changed files with 3 additions and 3 deletions

View File

@ -385,9 +385,9 @@ namespace OpenSim.Modules.PathFinding
} }
[ScriptInvocation] [ScriptInvocation]
public LSL_List osGetSearchableObjectList(UUID hostID, UUID scriptID, String searchString) public object[] osGetSearchableObjectList(UUID hostID, UUID scriptID, String searchString)
{ {
LSL_List returnList = new LSL_List(); List<object> returnList = new List<object>();
foreach (SceneObjectGroup thisGroup in m_scene.GetSceneObjectGroups()) foreach (SceneObjectGroup thisGroup in m_scene.GetSceneObjectGroups())
{ {
@ -395,7 +395,7 @@ namespace OpenSim.Modules.PathFinding
returnList.Add(thisGroup.GroupID); returnList.Add(thisGroup.GroupID);
} }
return returnList; return returnList.ToArray();
} }