diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-02 22:45:30 +0000 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-02 22:45:30 +0000 |
commit | 84ffc72c01e53cbf4d2449d1753fd6556c5c9932 (patch) | |
tree | e487142e64e92699605886913b0e52515c910d26 /indra | |
parent | bc9096bea2631f360f81b35a31a81b6cb6985d43 (diff) |
Probably the real fix for isLightSpotlight() - PARAMS_LIGHT_IMAGE isn't guaranteed, duh.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llvovolume.cpp | 6 |
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; } |