From 0fb0f028215e0b0539d13a465918bcbf0333fbc9 Mon Sep 17 00:00:00 2001 From: fdai7727 Date: Thu, 25 Jan 2024 19:47:53 +0100 Subject: [PATCH] =?UTF-8?q?Test=20f=C3=BCr=20zu=20gro=C3=9Fe=20Wert=C3=BCb?= =?UTF-8?q?ergabe=20bei=20getWordFromList=20+=20Anpassung=20im=20Produktiv?= =?UTF-8?q?Code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/c/Tim/hangman.c | 9 ++++++++- src/test/c/Tim/test_hangman.c | 13 +++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/main/c/Tim/hangman.c b/src/main/c/Tim/hangman.c index 33293be..0f7c94d 100644 --- a/src/main/c/Tim/hangman.c +++ b/src/main/c/Tim/hangman.c @@ -55,6 +55,13 @@ void hangman() char* getWordFromList(int x) { - return wordlist[x]; + if(x