error C2374: 'i' : redefinition; multiple initialization

make MSVC 6.0 build again.
This code breaks:
for (int i=0;....
for (int i=0;....
use
int i;
for (i=0;...
for (i=0;...
instead ;-)
This commit is contained in:
ejcoumans
2008-02-05 05:55:25 +00:00
parent dad6667756
commit 39ecc2ab7e
5 changed files with 19 additions and 13 deletions

View File

@@ -126,13 +126,15 @@ btShapeHull::buildHull (btScalar margin)
}
m_vertices.resize (hr.mNumOutputVertices);
for (unsigned int i = 0; i < hr.mNumOutputVertices; i++)
for (i = 0; i < hr.mNumOutputVertices; i++)
{
m_vertices[i] = hr.mOutputVertices[i];
}
m_numIndices = hr.mNumIndices;
m_indices = new unsigned int [m_numIndices];
for (unsigned int i = 0; i < m_numIndices; i++)
for (i = 0; i < m_numIndices; i++)
{
m_indices[i] = hr.mIndices[i];
}