mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
Marshal Actor name as a UTF-8 string
This commit is contained in:
parent
97d8fa855a
commit
e239fddc59
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ namespace Dalamud.Game.ClientState.Structs
|
|||
[StructLayout(LayoutKind.Explicit, Pack = 2)]
|
||||
public struct Actor
|
||||
{
|
||||
[FieldOffset(ActorOffsets.Name)] [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 30)] public string Name;
|
||||
[FieldOffset(ActorOffsets.Name)] [MarshalAs(UnmanagedType.LPUTF8Str, SizeConst = 30)] public string Name;
|
||||
[FieldOffset(ActorOffsets.ActorId)] public int ActorId;
|
||||
[FieldOffset(ActorOffsets.DataId)] public int DataId;
|
||||
[FieldOffset(ActorOffsets.OwnerId)] public int OwnerId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue