LLViewerObjectList::mDeadObjects has no reason to be a std::map any longer. Converted to std::set as per v2.
This commit is contained in:
@@ -827,13 +827,14 @@ void LLViewerObjectList::clearDebugText()
|
||||
void LLViewerObjectList::cleanupReferences(LLViewerObject *objectp)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_OBJECT);
|
||||
if (mDeadObjects.count(objectp->mID))
|
||||
if (mDeadObjects.find(objectp->mID) != mDeadObjects.end())
|
||||
{
|
||||
llinfos << "Object " << objectp->mID << " already on dead list, ignoring cleanup!" << llendl;
|
||||
return;
|
||||
llinfos << "Object " << objectp->mID << " already on dead list!" << llendl;
|
||||
}
|
||||
else
|
||||
{
|
||||
mDeadObjects.insert(objectp->mID);
|
||||
}
|
||||
|
||||
mDeadObjects.insert(std::pair<LLUUID, LLPointer<LLViewerObject> >(objectp->mID, objectp));
|
||||
|
||||
// Cleanup any references we have to this object
|
||||
// Remove from object map so noone can look it up.
|
||||
|
||||
Reference in New Issue
Block a user