aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie Thielker2009-04-15 23:17:25 +0000
committerMelanie Thielker2009-04-15 23:17:25 +0000
commit5a0f1e9022ec1eb3e9f6140c73b86dcdec95b58d (patch)
treed8c54bae5b844f5161070612a024c7559f63d3b8 /OpenSim/Region
parentCommit the group deeding support, thank you, mcortez (diff)
downloadopensim-SC_OLD-5a0f1e9022ec1eb3e9f6140c73b86dcdec95b58d.zip
opensim-SC_OLD-5a0f1e9022ec1eb3e9f6140c73b86dcdec95b58d.tar.gz
opensim-SC_OLD-5a0f1e9022ec1eb3e9f6140c73b86dcdec95b58d.tar.bz2
opensim-SC_OLD-5a0f1e9022ec1eb3e9f6140c73b86dcdec95b58d.tar.xz
Prevent a nullref when no script engines are loaded
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index cda90d6..0abe715 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1962,6 +1962,9 @@ namespace OpenSim.Region.Framework.Scenes
1962 // 1962 //
1963 foreach (IScriptModule m in m_scriptEngines) 1963 foreach (IScriptModule m in m_scriptEngines)
1964 { 1964 {
1965 if (m == null) // No script engine loaded
1966 continue;
1967
1965 m.PostObjectEvent(grp.RootPart.UUID, "changed", new Object[] {16384}); 1968 m.PostObjectEvent(grp.RootPart.UUID, "changed", new Object[] {16384});
1966 } 1969 }
1967 } 1970 }