From: vortex Date: Mon, 18 Oct 2010 01:26:27 +0000 (+0000) Subject: fix a crash in R_CompleteLightPoint during rtworld sampling X-Git-Tag: xonotic-v0.1.0preview~56^2~69 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7e9c3e938f38753d22793b46018cfad9b0030bc5;p=xonotic%2Fdarkplaces.git fix a crash in R_CompleteLightPoint during rtworld sampling git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10548 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index d6057792..fa594fde 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -6029,6 +6029,8 @@ void R_CompleteLightPoint(vec3_t ambientcolor, vec3_t diffusecolor, vec3_t diffu for (i = 0; i < numlights; i++) { dlight = (dlight_t *) Mem_ExpandableArray_RecordAtIndex(&r_shadow_worldlightsarray, i); + if (!dlight) + continue; light = &dlight->rtlight; if (!(light->flags & flag)) continue;