Changing sanity check condition when checking for the linker after sync loading.

[CL 2588633 by Robert Manuszewski in Main branch]
This commit is contained in:
Robert Manuszewski
2015-06-16 10:45:33 -04:00
committed by Robert.Manuszewski@epicgames.com
parent 882f79f039
commit a1247009f0
@@ -1050,8 +1050,8 @@ UPackage* LoadPackageInternal(UPackage* InOuter, const TCHAR* InLongPackageName,
{
if (FUObjectThreadContext::Get().ObjBeginLoadCount == 0)
{
// Sanity check to make sure that Linker is the linker that loaded our Result package
check(!Result || Result->LinkerLoad == Linker);
// Sanity check to make sure that Linker is the linker that loaded our Result package or the linker has already been detached
check(!Result || Result->LinkerLoad == Linker || Result->LinkerLoad == nullptr);
if (Result && Linker->Loader)
{
ResetLoaders(Result);