Skip to content

特定情况下在Lua中调用TArray的Add接口时内存对齐引起的问题 #668

@xuyanghuang-tencent

Description

@xuyanghuang-tencent

image

  1. TArray元素类型为蓝图UserDefinedStruct
  2. 第一个成员是C++类型
  3. 总成员大小没有内存对齐
  4. 为TArray添加第二个元素

会在UScriptStruct::InitializeStruct中引起check

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions