From dc52cc60a69b31233d495086c4aa3af1c3210b76 Mon Sep 17 00:00:00 2001 From: structix Date: Mon, 22 May 2017 21:43:33 +0200 Subject: [PATCH] Fixed a bug where the character set didn't show numbers --- hangman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hangman.c b/hangman.c index 11d7814..d8afced 100644 --- a/hangman.c +++ b/hangman.c @@ -168,7 +168,7 @@ void initAlphabet(game_state *gs) { int hasNumber = 0; int i; for (i = 0; i < MAXWORDLENGTH; i++) { - if (isdigit(gs->guessWord[i]) == 1) { + if (isdigit(gs->guessWord[i]) > 0) { hasNumber = 1; break; }