Fixed a crash

This commit is contained in:
Drake Arconis
2012-11-06 07:20:24 -05:00
parent 858bb15a6b
commit 8cf956e669

View File

@@ -293,14 +293,14 @@ void LLWorld::removeRegion(const LLHost &host)
mActiveRegionList.remove(regionp);
mCulledRegionList.remove(regionp);
mVisibleRegionList.remove(regionp);
delete regionp;
updateWaterObjects();
//double check all objects of this region are removed.
gObjectList.clearAllMapObjectsInRegion(regionp) ;
//llassert_always(!gObjectList.hasMapObjectInRegion(regionp)) ;
updateWaterObjects();
delete regionp;
}