Another klockwork patch.

Check to make sure BOP_newEmptyMesh returns a mesh before trying to use it.

Kent
This commit is contained in:
Kent Mein
2006-10-25 19:47:21 +00:00
parent 80ffbee6f7
commit 5fdd9bcb9e

View File

@@ -533,6 +533,8 @@ BSP_CSGMesh* BOP_exportMesh(BOP_Mesh* mesh,
{
BSP_CSGMesh* outputMesh = BOP_newEmptyMesh(props);
if (outputMesh == NULL) return NULL;
// User data handlers
BSP_CSGUserData* outputFaceVtxData = &(outputMesh->FaceVertexData());
BSP_CSGUserData* outputFaceData = &(outputMesh->FaceData());