diff options
| author | Oz Linden <oz@lindenlab.com> | 2011-04-18 16:25:02 -0400 |
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2011-04-18 16:25:02 -0400 |
| commit | 9c995e2a5ce45cc912605d077d704fa76ed904dd (patch) | |
| tree | 2f790ce33f92bff08ee64c45cfee4ad8ea62f4a5 /indra/newview/llwearabletype.cpp | |
| parent | 853231580aa2a6bf2894c20495c549a9d5f3c673 (diff) | |
| parent | 81676d4753a1abe347a69a95f234a005aad0659f (diff) | |
merge up from viewer-development (with changes for storm-160 backed out)
Diffstat (limited to 'indra/newview/llwearabletype.cpp')
| -rw-r--r-- | indra/newview/llwearabletype.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llwearabletype.cpp b/indra/newview/llwearabletype.cpp index f933be4d8f..9e95604712 100644 --- a/indra/newview/llwearabletype.cpp +++ b/indra/newview/llwearabletype.cpp @@ -144,6 +144,7 @@ BOOL LLWearableType::getDisableCameraSwitch(LLWearableType::EType type) { const LLWearableDictionary *dict = LLWearableDictionary::getInstance(); const WearableEntry *entry = dict->lookup(type); + if (!entry) return FALSE; return entry->mDisableCameraSwitch; } @@ -152,6 +153,7 @@ BOOL LLWearableType::getAllowMultiwear(LLWearableType::EType type) { const LLWearableDictionary *dict = LLWearableDictionary::getInstance(); const WearableEntry *entry = dict->lookup(type); + if (!entry) return FALSE; return entry->mAllowMultiwear; } |
