Skip to content

Commit 515dcc5

Browse files
committed
fixes to function gen
1 parent 5717060 commit 515dcc5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SuzieMod/src/Suzie.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ UFunction* Suzie::FindOrCreateFunction(FDynamicClassGenerationContext& Context,
293293
}
294294

295295
// Convert struct flag names to the struct flags bitmask
296-
EFunctionFlags FunctionFlags = FUNC_Native | Function.Flags;
296+
EFunctionFlags FunctionFlags = Function.Flags;
297297

298298
// Have to temporarily mark the function as RF_ArchetypeObject to be able to create functions with UPackage as outer
299299
UFunction* NewFunction = UObjectGlobals::NewObject<UFunction>(FunctionOuterObject, FName(*ObjectName, FNAME_Add), (EObjectFlags)(RF_Public | RF_MarkAsRootSet | RF_ArchetypeObject));
@@ -568,7 +568,7 @@ UPackage* Suzie::FindOrCreatePackage(const FString& PackageName)
568568
UClass* Suzie::FindOrCreateUnregisteredClass(FDynamicClassGenerationContext& Context, const FString& ClassPath)
569569
{
570570
// Attempt to find an existing class first
571-
if (UClass* ExistingClass = UObjectGlobals::FindObject<UClass>(nullptr, *ClassPath))
571+
if (UClass* ExistingClass = UObjectGlobals::StaticFindObject<UClass*>(nullptr, nullptr, *ClassPath))
572572
{
573573
return ExistingClass;
574574
}

0 commit comments

Comments
 (0)