1. simon_linden
  2. viewer-rabbit

Commits

Loren Shih  committed ca336ec

SH-1328 FIXED Crash on LLWearableType::getAllowMultiwear
Crash was because we weren't checking for null wearable lookups.

  • Participants
  • Parent commits e3116e1
  • Branches default

Comments (0)

Files changed (1)

File indra/newview/llwearabletype.cpp

View file
 {
 	const LLWearableDictionary *dict = LLWearableDictionary::getInstance();
 	const WearableEntry *entry = dict->lookup(type);
+	if (!entry) return FALSE;
 	return entry->mDisableCameraSwitch;
 }
 
 {
 	const LLWearableDictionary *dict = LLWearableDictionary::getInstance();
 	const WearableEntry *entry = dict->lookup(type);
+	if (!entry) return FALSE;
 	return entry->mAllowMultiwear;
 }