After I compiled my code from this lecture there was no problem but when I tried to play Unreal crashed. I tried to comment the new code and play it without it but it is still crashing.
Did you compile after commenting it out? Could you post your code?
Are you sure the word list is being populated? You would crash on line 36 if it’s not.
So I commented out line 36 and now it’s not crashing but I still don’t understand what’s wrong with it.
Like I said, the word list is most likely not being populated which means you would be accessing the Words[-1]
which is out of bounds.
You will need to figure out why it’s not being populated, are you sure the path to the file is correct? Could you show that?
I had the same problem. Then I discovered I was defining two Array FStrings called “Word” . One is a member variable and the other was defined in the HiddenWordList.h header file. I just changed the name of the member class variable array to WordListLoaded and everything worked.