]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/writebsp.c
initial code for converting .map to .map
[xonotic/netradiant.git] / tools / quake3 / q3map2 / writebsp.c
index 2ef8962b688cfad06dcb7ad864e9fb5a1a97813f..7d63e357dc003d03cde7653be05ae910f563ef2a 100644 (file)
@@ -630,7 +630,8 @@ void EndModel( entity_t *e, node_t *headnode )
        
        /* emit the bsp */
        mod = &bspModels[ numBSPModels ];
-       EmitDrawNode_r( headnode );
+       if(headnode)
+               EmitDrawNode_r( headnode );
        
        /* set surfaces and brushes */
        mod->numBSPSurfaces = numBSPDrawSurfaces - mod->firstBSPSurface;