FIRE-15787: Crash fix

Ansariel 2015-03-26 21:17:35 +01:00
parent 15242bd214
commit a84cad1d7d
1 changed files with 7 additions and 0 deletions

View File

@ -534,6 +534,13 @@ void LLLocalBitmap::updateUserSculpts(LLUUID old_id, LLUUID new_id)
void LLLocalBitmap::updateUserLayers(LLUUID old_id, LLUUID new_id, LLWearableType::EType type)
{
// <FS:Ansariel> FIRE-15787: Crash fix
if (!gAgentAvatarp)
{
return;
}
// </FS:Ansariel>
U32 count = gAgentWearables.getWearableCount(type);
for(U32 wearable_iter = 0; wearable_iter < count; wearable_iter++)
{