Fix possible crash due to hl2bsp support.

This commit is contained in:
Shpoike 2021-04-27 19:38:37 +01:00
parent 7612446a59
commit 76d232b007
1 changed files with 1 additions and 1 deletions

View File

@ -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