missed new c# version only code

0.9.1.0-post-fixes
UbitUmarov 2018-09-30 05:39:58 +01:00
parent 0f1bc23039
commit 57ae99b113
1 changed files with 2 additions and 1 deletions

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)