From ae9e01805118a1b93d5f166fd514423fc70d2041 Mon Sep 17 00:00:00 2001 From: fdai7103 Date: Thu, 9 Feb 2023 00:20:09 +0100 Subject: [PATCH] refactoring: Die Variable an die Konvention angepasst --- src/Paper-Bin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 37f64aa..4a63df1 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -343,16 +343,16 @@ void sortScoreboard() } //Spielerliste mithilfe einer Hilfsveriable sortieren, um sie danach direkt ausgeben zu koennen - struct Player temp; + struct Player tmp; for (int i = 0; i < numberOfLines; i++) { for (int j = 0; j < (numberOfLines - i); j++) { if (playerlist[i].Points < playerlist[i + 1].Points) { - temp = playerlist[i]; + tmp = playerlist[i]; playerlist[i] = playerlist[i + 1]; - playerlist[i + 1] = temp; + playerlist[i + 1] = tmp; } } }