Game always crashes

Hey guys, I’m having issues with the 2 for cicle used in the SubmitGuess method, for whatever reason when I write a word to test the program it always goes in a infinite loop although I wrote the same code as the one in the lecture.
Even writing a word with the same length as the one that the HiddenWord has makes the game crash.
Here is my code:
main: https://pastebin.com/RxAqVw4f
FBullCowGame.h: https://pastebin.com/4MBt8w1b
FBullCowGame.cpp: https://pastebin.com/U9bUF6Vb
Thanks to anyone who’s willing to help me out and also sorry for my bad formatting.

1 Like

I’m sorry, but the code you provided has no “for” loops in the implementation of SubmitGuess(). Can you verify that you provided the correct version of it?

1 Like

How did you get on with this Damien?

1 Like

Hello @Damien_Carter,

are you still there?

Copy the code from @ben into your FBullCowGame.cpp: https://github.com/UnrealCourse/02_BullCowGame/commit/4bf71623b83625fc619fe30c694df519a6059d3d

Cheers
OtenMoten

Privacy & Terms