aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 79b6be3..7a9a92d 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -5596,7 +5596,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5596 public LSL_String llGetLandOwnerAt(LSL_Vector pos) 5596 public LSL_String llGetLandOwnerAt(LSL_Vector pos)
5597 { 5597 {
5598 m_host.AddScriptLPS(1); 5598 m_host.AddScriptLPS(1);
5599 return World.LandChannel.GetLandObject((float)pos.x, (float)pos.y).LandData.OwnerID.ToString(); 5599 ILandObject land = World.LandChannel.GetLandObject((float)pos.x, (float)pos.y);
5600 if (land == null)
5601 return UUID.Zero.ToString();
5602 return land.LandData.OwnerID.ToString();
5600 } 5603 }
5601 5604
5602 /// <summary> 5605 /// <summary>