Skip to content

Commit

Permalink
[unreal]修复静态绑定: 若结构体没有绑定构造函数则不会生成构造函数定义
Browse files Browse the repository at this point in the history
Signed-off-by: morirain <[email protected]>
  • Loading branch information
morirain committed Dec 23, 2024
1 parent cc6189a commit 4b0488d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,8 @@ void FTypeScriptDeclarationGenerator::GenStruct(UStruct* Struct)
auto GenConstrutor = [&]()
{
auto ClassDefinition = PUERTS_NAMESPACE::FindClassByType(Struct);
if (ClassDefinition && ClassDefinition->ConstructorInfos)
if (ClassDefinition && ClassDefinition->ConstructorInfos && ClassDefinition->ConstructorInfos->Name &&
ClassDefinition->ConstructorInfos->Type)
{
PUERTS_NAMESPACE::NamedFunctionInfo* ConstructorInfo = ClassDefinition->ConstructorInfos;
while (ConstructorInfo && ConstructorInfo->Name && ConstructorInfo->Type)
Expand Down

0 comments on commit 4b0488d

Please sign in to comment.