diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index eec46a9..42e93f1 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -199,7 +199,7 @@ void sortScoreboard() FILE* fp = fopen("ScoreBoard.txt", "w"); - for (int i = 0; i <= numberOfLines +1; i++) + for (int i = 0; i < numberOfLines; i++) { fprintf(fp, "%s %d\n", playerlist[i].Name, playerlist[i].Points); }