From: havoc Date: Tue, 7 Oct 2003 04:49:50 +0000 (+0000) Subject: a stab in the dark at supporting unlit q3bsp maps X-Git-Tag: xonotic-v0.1.0preview~6344 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2d56c5ebd29a1a29e7d93bf161121ab81c586fdf;p=xonotic%2Fdarkplaces.git a stab in the dark at supporting unlit q3bsp maps git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3542 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index 52c6fb58..2af3492e 100644 --- a/model_brush.c +++ b/model_brush.c @@ -3537,6 +3537,8 @@ static void Mod_Q3BSP_LoadLightmaps(lump_t *l) rtexture_t **out; int i, count; + if (!l->filelen) + return; in = (void *)(mod_base + l->fileofs); if (l->filelen % sizeof(*in)) Host_Error("Mod_Q3BSP_LoadLightmaps: funny lump size in %s",loadmodel->name);