mirror of https://github.com/ZDoom/gzdoom.git
- Fixed: The multitexture composition code was missing a NULL pointer check.
SVN r1880 (trunk)
This commit is contained in:
parent
3ff95001f5
commit
23c0f24160
|
@ -550,7 +550,7 @@ int FMultiPatchTexture::CopyTrueColorPixels(FBitmap *bmp, int x, int y, int w, i
|
||||||
if (w < 0 || w > Width) w = Width;
|
if (w < 0 || w > Width) w = Width;
|
||||||
if (h < 0 || h > Height) h = Height;
|
if (h < 0 || h > Height) h = Height;
|
||||||
|
|
||||||
if (inf->op == OP_OVERWRITE)
|
if (inf != NULL && inf->op == OP_OVERWRITE)
|
||||||
{
|
{
|
||||||
bmp->Zero();
|
bmp->Zero();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue