mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 13:57:43 +01:00
Respect null-termination of entity names
This commit is contained in:
parent
65c604f827
commit
31cbf4d8eb
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ internal unsafe readonly struct LogMessageEntity(LogMessageQueueItem* ptr, bool
|
||||||
{
|
{
|
||||||
public Span<byte> NameSpan => source ? ptr->SourceName : ptr->TargetName;
|
public Span<byte> NameSpan => source ? ptr->SourceName : ptr->TargetName;
|
||||||
|
|
||||||
public ReadOnlySeString Name => new ReadOnlySeString(this.NameSpan);
|
public ReadOnlySeString Name => new ReadOnlySeString(this.NameSpan[..this.NameSpan.IndexOf((byte)0)]);
|
||||||
|
|
||||||
public ushort HomeWorldId => source ? ptr->SourceHomeWorld : ptr->TargetHomeWorld;
|
public ushort HomeWorldId => source ? ptr->SourceHomeWorld : ptr->TargetHomeWorld;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue