Skip to content

Commit c2d18ec

Browse files
committed
fixed struct passing bug, finished struct tests
1 parent 6d2ad42 commit c2d18ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/UnrealEnginePython/Private/UEPyModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,7 @@ PyObject *ue_py_convert_property(UProperty *prop, uint8 *buffer, int32 index)
21432143
FLinearColor color = *casted_prop->ContainerPtrToValuePtr<FLinearColor>(buffer, index);
21442144
return py_ue_new_flinearcolor(color);
21452145
}
2146-
return py_ue_new_uscriptstruct(casted_struct, casted_prop->ContainerPtrToValuePtr<uint8>(buffer, index));
2146+
return py_ue_new_owned_uscriptstruct(casted_struct, casted_prop->ContainerPtrToValuePtr<uint8>(buffer, index));
21472147
}
21482148
return PyErr_Format(PyExc_TypeError, "unsupported UStruct type");
21492149
}

0 commit comments

Comments
 (0)