Fixed a bug where the character set didn't show numbers

This commit is contained in:
2017-05-22 21:43:33 +02:00
parent 8bd852ad8b
commit dc52cc60a6

View File

@@ -168,7 +168,7 @@ void initAlphabet(game_state *gs) {
int hasNumber = 0; int hasNumber = 0;
int i; int i;
for (i = 0; i < MAXWORDLENGTH; i++) { for (i = 0; i < MAXWORDLENGTH; i++) {
if (isdigit(gs->guessWord[i]) == 1) { if (isdigit(gs->guessWord[i]) > 0) {
hasNumber = 1; hasNumber = 1;
break; break;
} }