Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zontreck committed May 14, 2024
1 parent aba99b6 commit 1701d8d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4631,13 +4631,14 @@ public LSL_Integer llReturnObjectsByID(LSL_List objects)
// TODO: Make a config option to customize the throttle
// The throttle likely should be a multiplier on capacity

int X;
int count;
int X=0;
int count=0;
var parcel = World.LandChannel.GetLandObject((m_host.GetWorldPosition()));
SceneObjectGroup[] parcelObjects = parcel.GetSceneObjectGroups();
ISceneObject[] parcelObjects = parcel.GetSceneObjectGroups();

foreach (object obj in objects)
for(int i=0;i<objects.Length;i++)
{
LSL_String obj = objects.GetStringItem(i);
try
{

Expand Down Expand Up @@ -4679,7 +4680,7 @@ public LSL_Integer llReturnObjectsByID(LSL_List objects)
return new LSL_Integer(count);
}

public LSL_Integer llReturnObjectsByOwner(string owner, LSL_Integer scope)
public LSL_Integer llReturnObjectsByOwner(string owner, int scope)
{
if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_RETURN_OBJECTS) == 0)
{
Expand Down Expand Up @@ -4716,7 +4717,7 @@ public LSL_Integer llReturnObjectsByOwner(string owner, LSL_Integer scope)
{

// If owner of SOG is [owner], return it.
if (sogx.OwnerID.ToString()() == owner)
if (sogx.OwnerID.ToString() == owner)
{
count++;
World.AddReturn(sogx.GroupID, sogx.Name, sogx.AbsolutePosition, "Object Owner Return");
Expand Down

0 comments on commit 1701d8d

Please sign in to comment.