From 7b94f34226831dfdf301345c62975c3d62fe7792 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 24 Sep 2007 18:19:17 +0000 Subject: [PATCH] fix a crash in levels without water git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7581 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index 6dfe474d..5b13ce7b 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -3067,7 +3067,7 @@ void R_RenderScene(qboolean addwaterplanes) if (r_timereport_active) R_TimeReport("watervisibility"); - if (cl.csqc_vidvars.drawworld && r_refdef.worldmodel && r_refdef.worldmodel->Draw) + if (cl.csqc_vidvars.drawworld && r_refdef.worldmodel && r_refdef.worldmodel->DrawAddWaterPlanes) { r_refdef.worldmodel->DrawAddWaterPlanes(r_refdef.worldentity); if (r_timereport_active) -- 2.39.2