From 71716072782eb3735318c010bd7e4c20eece725c Mon Sep 17 00:00:00 2001 From: Mathias Fourreaux <mathias.fourreaux6@etu.univ-lorraine.fr> Date: Sun, 16 Dec 2018 17:09:53 +0100 Subject: [PATCH] correction score --- main.c | 2 +- tab_des_scores.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/main.c b/main.c index db15ebf..4f27ec7 100644 --- a/main.c +++ b/main.c @@ -247,7 +247,6 @@ int main(int argc, char *argv[]) char score[13]; sprintf(score, "Score : %d \n", nbTues); fputs(score, fichier); - fclose(fichier); gameover = true; } @@ -305,6 +304,7 @@ int main(int argc, char *argv[]) } } + fclose(fichier); SDL_DestroyWindow(fenetre); SDL_DestroyRenderer(ecran); Mix_FreeMusic(musique); diff --git a/tab_des_scores.txt b/tab_des_scores.txt index 2f73a47..e69de29 100644 --- a/tab_des_scores.txt +++ b/tab_des_scores.txt @@ -1 +0,0 @@ -Score : 0 -- GitLab