diff --git a/source_files/edge/r_bsp.cc b/source_files/edge/r_bsp.cc index 09326ac3f..40d4cd129 100644 --- a/source_files/edge/r_bsp.cc +++ b/source_files/edge/r_bsp.cc @@ -982,7 +982,7 @@ static int32_t BspTraverseProc(void *thread_data) // walk the bsp tree BspWalkNode(root_node); - if (current_batch->num_items_) + if (current_batch && current_batch->num_items_) { BSPQueueRenderBatch(current_batch); }