fix print of linked list

This commit is contained in:
Mylloon 2022-11-18 16:08:47 +01:00
parent 7e00f37208
commit 8653ef4d83
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -63,9 +63,9 @@ void supprime_liste(Element *act, Jeton *data) {
}
void affiche_liste(Element *element) {
if (element->suivant) {
if (element) {
affiche_liste(element->suivant);
printf("%c%d ", element->jeton->pos_i + 'A', element->jeton->pos_j + 1);
printf("%c%d ", element->jeton->pos_j + 'A', element->jeton->pos_i + 1);
}
}