qbsp: fix qbsp crash when worldspawn has 0 brushes

This commit is contained in:
Eric Wasylishen 2018-03-23 14:48:20 -06:00
parent 7bb84a7119
commit 4491598bdb
1 changed files with 3 additions and 2 deletions

View File

@ -43,8 +43,9 @@ ProcessEntity(mapentity_t *entity, const int hullnum)
surface_t *surfs;
node_t *nodes;
/* No map brushes means non-bmodel entity */
if (!entity->nummapbrushes)
/* No map brushes means non-bmodel entity.
We need to handle worldspawn containing no brushes, though. */
if (!entity->nummapbrushes && entity != pWorldEnt())
return;
/*