From 23c0f2416046126a0fceb9e28643d502f3d3d605 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 26 Sep 2009 22:28:55 +0000 Subject: [PATCH] - Fixed: The multitexture composition code was missing a NULL pointer check. SVN r1880 (trunk) --- src/textures/multipatchtexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures/multipatchtexture.cpp b/src/textures/multipatchtexture.cpp index 2f83edd3f..722d8aad3 100644 --- a/src/textures/multipatchtexture.cpp +++ b/src/textures/multipatchtexture.cpp @@ -550,7 +550,7 @@ int FMultiPatchTexture::CopyTrueColorPixels(FBitmap *bmp, int x, int y, int w, i if (w < 0 || w > Width) w = Width; if (h < 0 || h > Height) h = Height; - if (inf->op == OP_OVERWRITE) + if (inf != NULL && inf->op == OP_OVERWRITE) { bmp->Zero(); }