SH-1328 FIXED Crash on LLWearableType::getAllowMultiwear

Crash was because we weren't checking for null wearable lookups.
meow-7.2.2
Loren Shih 2011-04-11 16:13:22 -04:00
parent 4895b24e38
commit e955cb58df
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}