diff --git a/src/annexe/saeAnnexe.c b/src/annexe/saeAnnexe.c index db14979..e1118ed 100644 --- a/src/annexe/saeAnnexe.c +++ b/src/annexe/saeAnnexe.c @@ -56,7 +56,7 @@ VilleIUT** loadIUT(VilleIUT** tiut, int* tlogi){ } } } - return tiut; + return tiut[0]; } void saveIUT(VilleIUT** tiut, int tlogi){ diff --git a/src/saeMain.c b/src/saeMain.c index 5fb2c9d..10b2519 100644 --- a/src/saeMain.c +++ b/src/saeMain.c @@ -12,7 +12,7 @@ int main(void) system("clear"); VilleIUT* tiut[36529]; int tlogi, quitter=0; - tiut=loadIUT(tiut,&tlogi), + tiut=loadIUT(tiut,&tlogi); while(!quitter){ menu(); char user;