Fix a crash noticed while working on the last commit, when asserts aren't always, we should return before using null pointers.

This commit is contained in:
Inusaito Sayori
2013-10-01 20:02:45 -04:00
parent ffd32542cc
commit a415b34c28

View File

@@ -881,6 +881,7 @@ void LLSurfacePatch::setOriginGlobal(const LLVector3d &origin_global)
void LLSurfacePatch::connectNeighbor(LLSurfacePatch *neighbor_patchp, const U32 direction)
{
llassert(neighbor_patchp);
if (!neighbor_patchp) return;
mNormalsInvalid[direction] = TRUE;
neighbor_patchp->mNormalsInvalid[gDirOpposite[direction]] = TRUE;