summaryrefslogtreecommitdiff
path: root/indra/newview
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
commitfa95084dd3e5af99d7a0944e8e3323b91ea85ee1 (patch)
tree239d24429ed81fe264beb9ac32304bbac14a8e08 /indra/newview
parentad51a5855f22ecd8d6064093c6c755c0a87638d1 (diff)
Probably the real fix for isLightSpotlight() - PARAMS_LIGHT_IMAGE isn't guaranteed, duh.
Diffstat (limited to 'indra/newview')
-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 10160a4208..8a77461369 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -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;
}