summaryrefslogtreecommitdiff
path: root/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-02 22:45:30 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-02 22:45:30 +0000
commitcc5920bed7790db49a062fb98ce54191f06ed98c (patch)
tree53beef5f149ee53b44ca42a87a8cc766c2d3fa19 /indra/newview/llvovolume.cpp
parent56bd8e1f4de45c63b896908c601aac13ffc57235 (diff)
Probably the real fix for isLightSpotlight() - PARAMS_LIGHT_IMAGE isn't guaranteed, duh.
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r--indra/newview/llvovolume.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index a6caa2362b..be2744aede 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -2465,7 +2465,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;
}