Fix possible crash due to hl2bsp support.
This commit is contained in:
parent
7612446a59
commit
76d232b007
|
@ -727,7 +727,7 @@ static void R_RenderScene_Internal(void)
|
|||
R_RenderDlights ();
|
||||
|
||||
#ifdef HL2BSPS
|
||||
if (cl.worldmodel->fromgame == fg_halflife2)
|
||||
if (!(r_refdef.flags & RDF_NOWORLDMODEL) && cl.worldmodel && cl.worldmodel->fromgame == fg_halflife2)
|
||||
CModHL2_DrawAreaPortals(cl.worldmodel);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue