aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index 3c6f695..854c833 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -2139,7 +2139,8 @@ namespace OpenSim.Region.CoreModules.World.Land
2139 2139
2140 public void ClientOnParcelGodMark(IClientAPI client, UUID god, int landID) 2140 public void ClientOnParcelGodMark(IClientAPI client, UUID god, int landID)
2141 { 2141 {
2142 ((Scene)client.Scene).TryGetScenePresence(client.AgentId, out ScenePresence sp); 2142 ScenePresence sp = null;
2143 ((Scene)client.Scene).TryGetScenePresence(client.AgentId, out sp);
2143 if (sp == null) 2144 if (sp == null)
2144 return; 2145 return;
2145 if (sp.IsChildAgent || sp.IsDeleted || sp.IsInTransit || sp.IsNPC) 2146 if (sp.IsChildAgent || sp.IsDeleted || sp.IsInTransit || sp.IsNPC)