From 57ae99b1135e36c2924f58064ed644ea29a5ae6c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 30 Sep 2018 05:39:58 +0100 Subject: missed new c# version only code --- OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenSim') 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 public void ClientOnParcelGodMark(IClientAPI client, UUID god, int landID) { - ((Scene)client.Scene).TryGetScenePresence(client.AgentId, out ScenePresence sp); + ScenePresence sp = null; + ((Scene)client.Scene).TryGetScenePresence(client.AgentId, out sp); if (sp == null) return; if (sp.IsChildAgent || sp.IsDeleted || sp.IsInTransit || sp.IsNPC) -- cgit v1.1