aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/GodController.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/GodController.cs b/OpenSim/Region/Framework/Scenes/GodController.cs
index 7672062..f51e8c9 100644
--- a/OpenSim/Region/Framework/Scenes/GodController.cs
+++ b/OpenSim/Region/Framework/Scenes/GodController.cs
@@ -198,12 +198,13 @@ namespace OpenSim.Region.Framework.Scenes
198 198
199 public void SetState(OSD state) 199 public void SetState(OSD state)
200 { 200 {
201 if(state == null)
202 return;
203
201 OSDMap s = (OSDMap)state; 204 OSDMap s = (OSDMap)state;
202 205
203 if (s.ContainsKey("ViewerUiIsGod")) 206 if (s.ContainsKey("ViewerUiIsGod"))
204 m_viewerUiIsGod = s["ViewerUiIsGod"].AsBoolean(); 207 m_viewerUiIsGod = s["ViewerUiIsGod"].AsBoolean();
205
206 SyncViewerState();
207 } 208 }
208 209
209 public int UserLevel 210 public int UserLevel