Try to fix a crash OMC had.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5724 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2020-07-07 22:05:36 +00:00
parent 82ecdfbfa8
commit 763888e1ff
1 changed files with 2 additions and 1 deletions

View File

@ -254,7 +254,8 @@ void Surf_WipeStains(void)
{
if (!lightmap[i])
break;
memset(lightmap[i]->stainmaps, 255, lightmap[i]->width*lightmap[i]->height*3*sizeof(stmap));
if (lightmap[i]->stainmaps)
memset(lightmap[i]->stainmaps, 255, lightmap[i]->width*lightmap[i]->height*3*sizeof(stmap));
}
}