I have added struct to project using add code to project. Everything compiles, but once I load editor it crashes.
From the debug it looks like this call from generated file crashes.
ReturnPackage = CastChecked<UPackage>(StaticFindObjectFast(UPackage::StaticClass(), NULL, FName(TEXT("/Script/Uprising")), false, false));
Error: Cast of NULL to Package failed
What can be cause?