Adding new C++ files in 4.24

Create class, wait for build to fail. Close Editor. Browse to .cpp file of your class, and correct include section “MyGameModeBase.h” to “Core\GameMode\MyGameModeBase.h” (with notepad or something). Browse to project root folder and start project. On rebuild question press “Yes”.

I’ve tried to post this bug to unreal team last sunday. No success yet.