don't seg when using 1 component lightmaps

This commit is contained in:
Bill Currie 2003-08-30 22:39:27 +00:00
parent cc41875968
commit 4d1313d0c1

View file

@ -132,10 +132,10 @@ Mod_LoadLighting (lump_t *l)
dstring_t *litfilename = dstring_new ();
int i;
dstring_copystr (litfilename, loadmodel->name);
loadmodel->lightdata = NULL;
if (mod_lightmap_bytes > 1) {
// LordHavoc: check for a .lit file to load
dstring_copystr (litfilename, loadmodel->name);
QFS_StripExtension (litfilename->str, litfilename->str);
dstring_appendstr (litfilename, ".lit");
data = (byte *) QFS_LoadHunkFile (litfilename->str);