diff --git a/neo/tools/compilers/aas/BrushBSP.cpp b/neo/tools/compilers/aas/BrushBSP.cpp index 7fb5e947..811a9f8a 100644 --- a/neo/tools/compilers/aas/BrushBSP.cpp +++ b/neo/tools/compilers/aas/BrushBSP.cpp @@ -2258,8 +2258,12 @@ bool idBrushBSP::TryMergeLeafNodes( idBrushBSPPortal* portal, int side ) // replace every reference to node2 by a reference to node1 UpdateTreeAfterMerge_r( root, bounds, node2, node1 ); - if (node2->GetFlags() & NODE_DONE) + // HarrievG: fixed crash with polygon maps + if( node2->GetFlags() & NODE_DONE ) + { delete node2; + } + // HarrievG end return true; }