Single empty c++ line influences compile result

When you make the change, do you see UnrealHeaderTool run?

It could also be that your header from a module which you don’t have a dependency on. If the module is not a dependent of your project, then changes to it will be ignored when you build your project.

Steve