Fix possible crash with deluxemapping.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5478 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2019-06-18 15:06:51 +00:00
parent 6ed36fa5a9
commit 5c5830eb53
1 changed files with 1 additions and 1 deletions

View File

@ -1358,7 +1358,7 @@ static void Surf_BuildLightMap (model_t *currentmodel, msurface_t *surf, int map
deluxedest = dlm->lightmaps + (surf->light_t[map] * dlm->width + surf->light_s[map]) * dlm->pixbytes;
Surf_BuildDeluxMap(currentmodel, surf, deluxedest, lm, blocknormals);
Surf_BuildDeluxMap(currentmodel, surf, deluxedest, dlm, blocknormals);
}
if (lm->fmt != PTI_L8)