Fix a bunch of disconnectNeighbor crashes in LLSurface

This commit is contained in:
Liru Færs
2020-01-17 02:27:56 -05:00
parent b957c0930d
commit 2242a1d101

View File

@@ -730,6 +730,7 @@ void LLSurface::disconnectNeighbor(LLSurface *surfacep)
}
// Iterate through surface patches, removing any connectivity to removed surface.
if (mPatchList) // Don't crash if removed before
for (i = 0; i < mNumberOfPatches; i++)
{
(mPatchList + i)->disconnectNeighbor(surfacep);