Fix crash on broken model

This commit is contained in:
mittorn 2019-01-25 20:37:11 +07:00
parent a297a0b5ad
commit 1e5f12a0ae
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ void R_MarkLights( dlight_t *light, int bit, mnode_t *node )
msurface_t *surf;
int i;
if( node->contents < 0 )
if( !node || node->contents < 0 )
return;
dist = PlaneDiff( light->origin, node->plane );