missed new c# version only code

This commit is contained in:
UbitUmarov
2018-09-30 05:39:58 +01:00
parent 0f1bc23039
commit 57ae99b113

View File

@@ -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)