From 653c22a705817fb9244dd54d686b7b165acbe791 Mon Sep 17 00:00:00 2001 From: kukemuna Date: Fri, 23 Feb 2024 22:50:23 +0200 Subject: [PATCH] automated commit by check50 [check50=True] --- scrabble.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scrabble.c b/scrabble.c index f6dec68..390dec7 100644 --- a/scrabble.c +++ b/scrabble.c @@ -43,10 +43,7 @@ int get_score(string word) { word[i] = toupper(word[i]) - 65; } - } - for (int j = 0; j < length; j++) - { - score += POINTS[(int) word[j]]; + score += POINTS[(int) word[i]]; } return score; }