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:
parent
82ecdfbfa8
commit
763888e1ff
|
@ -254,6 +254,7 @@ void Surf_WipeStains(void)
|
||||||
{
|
{
|
||||||
if (!lightmap[i])
|
if (!lightmap[i])
|
||||||
break;
|
break;
|
||||||
|
if (lightmap[i]->stainmaps)
|
||||||
memset(lightmap[i]->stainmaps, 255, lightmap[i]->width*lightmap[i]->height*3*sizeof(stmap));
|
memset(lightmap[i]->stainmaps, 255, lightmap[i]->width*lightmap[i]->height*3*sizeof(stmap));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue