void LLViewerObjectList::killObjects(LLViewerRegion *regionp) { LLViewerObject *objectp; S32 i; for (i = 0; i < mObjects.count(); i++) { objectp = mObjects[i]; if (objectp->mRegionp == regionp) { killObject(objectp); } } // Have to clean right away because the region is becoming invalid. cleanDeadObjects(FALSE); }
void LLViewerObjectList::killObjects(LLViewerRegion *regionp) { LLViewerObject *objectp; for (vobj_list_t::iterator iter = mObjects.begin(); iter != mObjects.end(); ++iter) { objectp = *iter; if (objectp->mRegionp == regionp) { killObject(objectp); } } // Have to clean right away because the region is becoming invalid. cleanDeadObjects(FALSE); }
void LLViewerObjectList::killObjects(LLViewerRegion *regionp) { LLViewerObject *objectp; S32 i; for (i = 0; i < mObjects.count(); i++) { objectp = mObjects[i]; if (objectp->mRegionp == regionp) { killObject(objectp); // invalidate region pointer. region will become invalid, but // refcounted objects may survive the cleanDeadObjects() call below objectp->mRegionp = NULL; } } // Have to clean right away because the region is becoming invalid. cleanDeadObjects(FALSE); }