From abc2a4ca441b9bde19d57c8ff0cc8098d0d01c07 Mon Sep 17 00:00:00 2001 From: Charlie Carley Date: Mon, 5 Feb 2007 08:07:55 +0000 Subject: [PATCH] Left out the case where MTFace can be null. --- source/gameengine/Converter/BL_BlenderDataConversion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gameengine/Converter/BL_BlenderDataConversion.cpp b/source/gameengine/Converter/BL_BlenderDataConversion.cpp index ea5638a6009..a271ae14539 100644 --- a/source/gameengine/Converter/BL_BlenderDataConversion.cpp +++ b/source/gameengine/Converter/BL_BlenderDataConversion.cpp @@ -679,7 +679,7 @@ BL_Material* ConvertMaterial( GetRGB(type,mface,mmcol,mat,rgb[0],rgb[1],rgb[2], rgb[3]); // swap the material color, so MCol on TF_BMFONT works - if (validmat && type==1 && tface->mode & TF_BMFONT) + if (validmat && type==1 && (tface && tface->mode & TF_BMFONT)) { rgb[0] = KX_rgbaint2uint_new(rgb[0]); rgb[1] = KX_rgbaint2uint_new(rgb[1]);