fix linked list
This commit is contained in:
parent
4c66a67694
commit
7e075e654b
1 changed files with 1 additions and 2 deletions
|
@ -54,8 +54,7 @@ void supprime_liste(Element *act, Jeton *data) {
|
||||||
|
|
||||||
if (act->suivant->jeton == data) {
|
if (act->suivant->jeton == data) {
|
||||||
Element *tmp = act->suivant;
|
Element *tmp = act->suivant;
|
||||||
printf("=> (%d;%d)\n", tmp->jeton->pos_i, tmp->jeton->pos_j);
|
act->suivant = act->suivant->suivant;
|
||||||
act->suivant = tmp->suivant->suivant;
|
|
||||||
|
|
||||||
free(tmp);
|
free(tmp);
|
||||||
} else {
|
} else {
|
||||||
|
|
Reference in a new issue