wasn't my code but I fixed it anyway. In my personal projects I don't use variable names in .h files because they don't matter, and it creates an unnecessary step, and an accidental mismatch of names is not caught by the compiler and it just confuses things. For that matter, .h files are already redundant - so maybe that's the real issue.