diff --git a/Startcode/game.c b/Startcode/game.c index 50411e2..536bf91 100644 --- a/Startcode/game.c +++ b/Startcode/game.c @@ -8,7 +8,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount) { - int row, col, word, startcol=0, startrow=0; + int row, col, word, startcol=0, startrow=0, placedWord=0; srand(time(NULL)); for(row=0; row