In my program, I include class Foo to my game manager class and everything works. Then I include Bar (a subclass to foo) into the game manager and then my program breaks, saying that Foo has an error and therefore Bar won’t compile. However, when I include Foo and create a Foo actor through the game manager, everything is fine. There are no errors in Foo at all.