Bug in LinkerLoad.cpp

From line 1122:


// don't load packages that contain editor only data in builds that don't support that and vise versa
if (!FPlatformProperties::HasEditorOnlyData() && !(Summary.PackageFlags & PKG_FilterEditorOnly))
{
	UE_LOG(LogLinker, Warning, TEXT("Unable to load package (%s). Package contains EditorOnly data which is not supported by the current build."), *Filename );
	return LINKER_Failed;
}

if (!FPlatformProperties::HasEditorOnlyData() && !(Summary.PackageFlags & PKG_FilterEditorOnly)) expression decodes into this:
if (!false && !(true) ----> if (true && false) -------> if (false)

But message clearly says that “Package contains EditorOnly data which is not supported by the current build”

Hey Giperion,

Can you give me a practical example of this condition failing?

Thanks.

Hello,

I am marking this topic as resolved for tracking purposes, as we have not heard from you in a few days. If this issue persists, feel free to respond to this thread. For any new issues, please create a new Answerhub topic.

Have a great day