[Radar] Fix up expireAvatarList to actually expire all the dead avatar entries, not just the back one.

This commit is contained in:
Lirusaito
2013-07-21 04:57:33 -04:00
parent 845088166a
commit 799b5408e4

View File

@@ -617,15 +617,7 @@ void LLFloaterAvatarList::expireAvatarList()
else
{
entry->setPosition(entry->getPosition(), false, false, false, false); // Dead and gone
if(mAvatars.back() == *it)
{
mAvatars.pop_back();
return;
}
*it = mAvatars.back();
mAvatars.pop_back();
if(mAvatars.empty())
return;
mAvatars.erase(it);
}
}
}