From 5c5830eb535305b10891ab33597bbed990223290 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 18 Jun 2019 15:06:51 +0000 Subject: [PATCH] Fix possible crash with deluxemapping. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5478 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/r_surf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/r_surf.c b/engine/client/r_surf.c index 1542cb5e5..c1cab7d3a 100644 --- a/engine/client/r_surf.c +++ b/engine/client/r_surf.c @@ -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)