Fixed: Initialize members in MDCFileData

pull/596/head
Richard 2015-06-30 23:35:21 -06:00
parent eaf63bd04b
commit d822930848
1 changed files with 15 additions and 0 deletions

View File

@ -117,6 +117,21 @@ struct Surface
uint32_t ulOffsetFrameCompFrames ;
uint32_t ulOffsetEnd;
Surface()
: ulIdent(),
ulFlags(),
ulNumCompFrames(),
ulNumBaseFrames(),
ulNumShaders(),
ulNumVertices(),
ulNumTriangles(),
ulOffsetTriangles(),
ulOffsetShaders(),
ulOffsetTexCoords(),
ulOffsetBaseVerts(),
ulOffsetCompVerts(),
ulOffsetFrameBaseFrames(),
ulOffsetFrameCompFrames(),
ulOffsetEnd()
{
ucName[AI_MDC_MAXQPATH-1] = '\0';
}