]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
a stab in the dark at supporting unlit q3bsp maps
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 7 Oct 2003 04:49:50 +0000 (04:49 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 7 Oct 2003 04:49:50 +0000 (04:49 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3542 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 52c6fb5888c87a2f2f90794ac6e8679e775f8af0..2af3492e3fd76b336a623d72e3940644dd08a0a5 100644 (file)
@@ -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);