Browse Source

Fix crash on broken model

pull/2/head
mittorn 6 years ago
parent
commit
1e5f12a0ae
  1. 2
      engine/client/gl_rlight.c

2
engine/client/gl_rlight.c

@ -104,7 +104,7 @@ void R_MarkLights( dlight_t *light, int bit, mnode_t *node ) @@ -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 );

Loading…
Cancel
Save