Prevent a null client from crashing windlight.

This commit is contained in:
Melanie
2012-11-03 20:35:09 +01:00
parent fd2bee8da1
commit 9eb39406ad

View File

@@ -153,6 +153,9 @@ namespace OpenSim.Region.CoreModules.World.LightShare
public void SendProfileToClient(IClientAPI client, RegionLightShareData wl)
{
if (client == null)
return;
if (m_enableWindlight)
{
if (m_scene.RegionInfo.WindlightSettings.valid)