Skip to content

Commit

Permalink
md3filter: Change variable-length array to vector
Browse files Browse the repository at this point in the history
Variable-length arrays are not part of C++ standards.
  • Loading branch information
zturtleman committed Sep 6, 2019
1 parent 48cb4fa commit 1677924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libmm3d/md3filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1020,8 +1020,8 @@ void Md3Filter::setMeshes( MeshSectionE section, int32_t offsetMeshes, int32_t n
{
// Triangle
m_src->seek( meshPos + meshTriangleOffset );
int32_t triang[meshTriangleCount][3];
unsigned tri[meshTriangleCount];
vector<int32_t[3]> triang( meshTriangleCount );
vector<int> tri( meshTriangleCount );
int32_t groupId = m_model->addGroup( meshName );
for ( int t = 0; t < meshTriangleCount; t++ )
{
Expand Down

0 comments on commit 1677924

Please sign in to comment.