This seems to fix crash with a map with no brushes

This commit is contained in:
jpaana 2004-11-29 02:25:38 +00:00
parent 78de5c748b
commit 2802a83a2b

View file

@ -496,7 +496,8 @@ void R_DrawWorldBumped() {
R_DrawMeshBumped((mesh_t *)currentshadowlight->lightCmdsMesh[i].asVoid);
}
lastShader = ((msurface_t *)currentshadowlight->lightCmds[0].asVoid)->shader->shader;
if ( (msurface_t *)currentshadowlight->lightCmds[0].asVoid)
lastShader = ((msurface_t *)currentshadowlight->lightCmds[0].asVoid)->shader->shader;
freeIndex = 0;
for (i=0; i<currentshadowlight->numlightcmds-1; i++) {
s = (msurface_t *)currentshadowlight->lightCmds[i].asVoid;