diff --git a/src/partie2/saeP2.c b/src/partie2/saeP2.c index c31f743..bb7471e 100644 --- a/src/partie2/saeP2.c +++ b/src/partie2/saeP2.c @@ -193,7 +193,7 @@ void Candidater(VilleIUT* tiut[],int tlogi, candidat* tcandidat[], int nbcandida strcpy(voeu_ajout->dep,DepRech); voeu_ajout->ddep=0; voeu_ajout->vcand=0; - tcandidat[i]->TabVoeu[tcandidat[i]->nbchoix-1]=voeu_ajout; + tcandidat[i]->TabVoeu[tcandidat[i]->nbchoix]=voeu_ajout; tcandidat[i]->nbchoix++; }