error C2440: 'return': cannot convert from 'FUSCharacterStats *const ' to 'FUS_CharacterStats *'



I have looked online trying to find some sort of solution to this issue. I am fairly new to C++ and I am following along with a book I bought. I would greatly appreciate a little bit of insight on why I am getting this error. I am trying to use a getter function for the stats structure I created. Unreal is not liking how this is scripted in the header file. I am also looking at the data table and setting my character stats. I am getting an error when setting the character stats as well.

Why do you have two different structures ?

  • FUSCharacterStats
  • FUS_CharacterStats

ahhh I forgot to add the underscore in the struct declaration. Thank you!