diff --git a/src/mesh.cpp b/src/mesh.cpp index b3f4de8..e5312e8 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -249,7 +249,7 @@ void SMesh::AddAgainstBsp(SMesh *srcm, SBsp3 *bsp3) { STriangle *st = &(srcm->l.elem[i]); int pn = l.n; atLeastOneDiscarded = false; - SBsp3::InsertOrCreate(NULL, st, this); + SBsp3::InsertOrCreate(bsp3, st, this); if(!atLeastOneDiscarded && (l.n != (pn+1))) { l.n = pn; if(flipNormal) {