Skip to content
Snippets Groups Projects
Commit f2ef9413 authored by ColinDrieu's avatar ColinDrieu
Browse files

Correction d'oublis dans le controleur.

parent 489561fc
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -198,7 +198,7 @@ char ** obtenirDescriptionCarte(){
}
//Copie des descriptions des cartes dans le tableau
for(i=0;i<getNbCartes(packGlobal);i++){
strncpy(tabDescCartes[i],packGlobal.Cartes_Package->desc, 100);
strncpy(tabDescCartes[i],packGlobal.Cartes_Package[i].desc, 100);
}
return tabDescCartes;
}
......@@ -293,7 +293,6 @@ int selectionnerCarte(char * nomCarte){
while((strcmp(nomCarte,packGlobal.Cartes_Package[i].nom)!=0)&&(i<nbCartes())){
i++;
}
printf("%d]\n",i);
if(i>=nbCartes()){
return 0;
......@@ -467,6 +466,10 @@ char * obtenirNomClassePersonnage(int numero){
setOnJoueur(getListJoueur(partieGlobale),actuel);
return nomClasse;
}
else{
setOnJoueur(getListJoueur(partieGlobale),actuel);
return NULL;
}
}
int obtenirPVPersonnage(int numero){
......@@ -668,7 +671,6 @@ void testControlleurConsole(){
printf("%s\n", obtenirManaMaxPersonnage(n));
printf("%s\n", obtenirPDPersonnage(n));
printf("%s\n", obtenirPDMaxPersonnage(n));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment