Skip to content
Snippets Groups Projects
Commit e955cb58 authored by Loren Shih's avatar Loren Shih
Browse files

SH-1328 FIXED Crash on LLWearableType::getAllowMultiwear

Crash was because we weren't checking for null wearable lookups.
parent 4895b24e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment