Prevent a nullref when no script engines are loaded

0.6.5-rc1
Melanie Thielker 2009-04-15 23:17:25 +00:00
parent 7306b73f02
commit 5a0f1e9022
1 changed files with 3 additions and 0 deletions

View File

@ -1962,6 +1962,9 @@ namespace OpenSim.Region.Framework.Scenes
//
foreach (IScriptModule m in m_scriptEngines)
{
if (m == null) // No script engine loaded
continue;
m.PostObjectEvent(grp.RootPart.UUID, "changed", new Object[] {16384});
}
}