]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
empty lightgrid lump should now work
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 22 Sep 2003 19:44:20 +0000 (19:44 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 22 Sep 2003 19:44:20 +0000 (19:44 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3503 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index a3e80479746dbf11ddaf75e03895cd254acb38a1..31ccdedff6b3893820949769df2f40afe35eea90 100644 (file)
@@ -3977,6 +3977,9 @@ static void Mod_Q3BSP_LoadLightGrid(lump_t *l)
        q3dlightgrid_t *out;
        int count;
 
+       if (l->filelen == 0)
+               return;
+
        in = (void *)(mod_base + l->fileofs);
        if (l->filelen % sizeof(*in))
                Host_Error("Mod_Q3BSP_LoadLightGrid: funny lump size in %s",loadmodel->name);