Linker error when adding variable to Character Class

Just a educated guess, it might fail because you are only doing a partial rebuild,
and your normal build is a unity build (everything copied together), which might result in you not including all the necessary headers in all files, which only causes problems if that file is then compiled separately