diff --git a/code/ObjFileParser.cpp b/code/ObjFileParser.cpp index 43e13825b..17dcf339b 100644 --- a/code/ObjFileParser.cpp +++ b/code/ObjFileParser.cpp @@ -66,7 +66,7 @@ ObjFileParser::ObjFileParser(std::vector &Data,const std::string &strModel m_uiLine(0), m_pIO( io ) { - memset(m_buffer, BUFFERSIZE, 0); + std::fill_n(m_buffer,BUFFERSIZE,0); // Create the model instance to store all the data m_pModel = new ObjFile::Model();