Skip to content

Commit

Permalink
Merge pull request Tencent#597 from SkYContact/master
Browse files Browse the repository at this point in the history
修复带有容器的DataTable因为未初始化导致在CopyScriptStruct崩溃
  • Loading branch information
xuyanghuang-tencent authored Oct 25, 2023
2 parents 74de486 + 16d2adb commit f427505
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ namespace UnLua
UScriptStruct::ICppStructOps* TheCppStructOps = StructType->GetCppStructOps();
TheCppStructOps->Construct(Userdata);
}
StructType->InitializeStruct(Userdata);
StructType->CopyScriptStruct(Userdata, RowPtr);
}
}
Expand Down

0 comments on commit f427505

Please sign in to comment.