Skip to content

Commit 16d2adb

Browse files
committed
修复带有容器的DataTable因为未初始化导致在CopyScriptStruct崩溃
1 parent 0e00abb commit 16d2adb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Plugins/UnLua/Source/UnLua/Private/BaseLib/LuaLib_DataTable.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ namespace UnLua
5959
UScriptStruct::ICppStructOps* TheCppStructOps = StructType->GetCppStructOps();
6060
TheCppStructOps->Construct(Userdata);
6161
}
62+
StructType->InitializeStruct(Userdata);
6263
StructType->CopyScriptStruct(Userdata, RowPtr);
6364
}
6465
}

0 commit comments

Comments
 (0)