From 6a1522ded8678aac9c1d2edaff6928b8e2bf1729 Mon Sep 17 00:00:00 2001 From: George Papadopoulos Date: Sun, 5 Apr 2015 16:08:06 +0300 Subject: [PATCH] [OpenGEXImporter] Correctly initialize m_textureCoords array --- code/OpenGEXImporter.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/OpenGEXImporter.cpp b/code/OpenGEXImporter.cpp index 932ae9460..76cee77a8 100644 --- a/code/OpenGEXImporter.cpp +++ b/code/OpenGEXImporter.cpp @@ -176,10 +176,12 @@ namespace OpenGEX { USE_ODDLPARSER_NS OpenGEXImporter::VertexContainer::VertexContainer() -: m_numVerts( 0 ) -, m_vertices( NULL ) -, m_numNormals( 0 ) -, m_normals( NULL ) { +: m_numVerts() +, m_vertices() +, m_numNormals() +, m_normals() +, m_textureCoords() +, m_numUVComps() { ::memset( &m_numUVComps[ 0 ], 0, sizeof( size_t )*AI_MAX_NUMBER_OF_TEXTURECOORDS ); }