mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-07 07:41:09 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue