git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8774
d7cf8633-e32d-0410-b094-
e92efae38249
}
else
{
- if(r_refdef.scene.worldmodel->brush.PointInLeaf)
+ if(r_refdef.scene.worldmodel && r_refdef.scene.worldmodel->brush.PointInLeaf)
{
mleaf_t *leaf = r_refdef.scene.worldmodel->brush.PointInLeaf(r_refdef.scene.worldmodel, decal->org);
if(leaf)
default:
if(cl_particles_visculling.integer)
if (!r_refdef.viewcache.world_novis)
- if(r_refdef.scene.worldmodel->brush.PointInLeaf)
+ if(r_refdef.scene.worldmodel && r_refdef.scene.worldmodel->brush.PointInLeaf)
{
mleaf_t *leaf = r_refdef.scene.worldmodel->brush.PointInLeaf(r_refdef.scene.worldmodel, p->org);
if(leaf)