correctio d'un bug dans "creerCandidat"

master
Maël DAIM 2 years ago
parent 27ffb74084
commit a4d0205fd2

@ -1519,6 +1519,7 @@ Candidat ** creerCandidat(Candidat *tCand[], int *tMax,int *pos)
c->notes[1] = notes[1];
c->notes[2] = notes[2];
c->notes[3] = notes[3];
c->nombreChoix=0;
tCand = reallocationCand(tCand, *tMax); /* Réallocation du tableau de candidats pour ajouter une place */
for(i = *tMax; i > *pos; i--) /* Décalage à droite des éléments du tableau à partir de la position d'insertion */
{

Loading…
Cancel
Save