Probably the real fix for isLightSpotlight() - PARAMS_LIGHT_IMAGE isn't guaranteed, duh.

meow-7.2.2
Tofu Linden 2010-02-02 22:45:30 +00:00
parent bc9096bea2
commit 84ffc72c01
1 changed files with 5 additions and 1 deletions

View File

@ -2454,7 +2454,11 @@ void LLVOVolume::updateSpotLightPriority()
bool LLVOVolume::isLightSpotlight() const
{
LLLightImageParams* params = (LLLightImageParams*) getParameterEntry(LLNetworkData::PARAMS_LIGHT_IMAGE);
return params->isLightSpotlight();
if (params)
{
return params->isLightSpotlight();
}
return false;
}