Silence an uninitialized variable warning

This commit is contained in:
Turo Lamminen 2021-01-25 13:07:04 +02:00 committed by Daniel Gibson
parent 18697fd998
commit c8104f1634

View file

@ -1164,6 +1164,7 @@ int idTraceModel::GetOrderedSilhouetteEdges( const int edgeIsSilEdge[MAX_TRACEMO
int i, j, edgeNum, numSilEdges, nextSilVert; int i, j, edgeNum, numSilEdges, nextSilVert;
int unsortedSilEdges[MAX_TRACEMODEL_EDGES]; int unsortedSilEdges[MAX_TRACEMODEL_EDGES];
unsortedSilEdges[0] = 0;
numSilEdges = 0; numSilEdges = 0;
for ( i = 1; i <= numEdges; i++ ) { for ( i = 1; i <= numEdges; i++ ) {
if ( edgeIsSilEdge[i] ) { if ( edgeIsSilEdge[i] ) {