Prevent a null client from crashing windlight.

avinationmerge
Melanie 2012-11-03 20:35:09 +01:00
parent fd2bee8da1
commit 9eb39406ad
1 changed files with 3 additions and 0 deletions

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)