Make minimap not die on dead objects

This commit is contained in:
Siana Gearz
2011-05-10 13:50:44 +02:00
parent fa51d52578
commit eeeb44755a

View File

@@ -1092,9 +1092,9 @@ void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap)
LLViewerObject* objectp = *iter;
llassert_always(objectp);
llassert_always(!objectp->isDead());
if (!objectp->getRegion() || objectp->isOrphaned() || objectp->isAttachment())
llassert(!objectp->isDead());
if (objectp->isDead() || !objectp->getRegion() || objectp->isOrphaned() || objectp->isAttachment())
{
continue;
}