From 2242a1d101dda85dd4f9a4998c65da62611e0655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liru=20F=C3=A6rs?= Date: Fri, 17 Jan 2020 02:27:56 -0500 Subject: [PATCH] Fix a bunch of disconnectNeighbor crashes in LLSurface --- indra/newview/llsurface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/indra/newview/llsurface.cpp b/indra/newview/llsurface.cpp index da7f8d2e3..0f10e1e13 100644 --- a/indra/newview/llsurface.cpp +++ b/indra/newview/llsurface.cpp @@ -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);