From 5dde360e0240569fd2c91ce0531bfb260896be00 Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Wed, 3 Mar 2021 21:10:46 -0500 Subject: [PATCH] fix: only look at non-null bytes --- Dalamud/Game/Internal/Gui/Structs/PartyFinder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dalamud/Game/Internal/Gui/Structs/PartyFinder.cs b/Dalamud/Game/Internal/Gui/Structs/PartyFinder.cs index cd8f133e6..91de07913 100755 --- a/Dalamud/Game/Internal/Gui/Structs/PartyFinder.cs +++ b/Dalamud/Game/Internal/Gui/Structs/PartyFinder.cs @@ -256,8 +256,8 @@ namespace Dalamud.Game.Internal.Gui.Structs { this.jobsPresent = listing.jobsPresent; Id = listing.id; - Name = seStringManager.Parse(listing.name); - Description = seStringManager.Parse(listing.description); + Name = seStringManager.Parse(listing.name.TakeWhile(b => b != 0).ToArray()); + Description = seStringManager.Parse(listing.description.TakeWhile(b => b != 0).ToArray()); World = new Lazy(() => dataManager.GetExcelSheet().GetRow(listing.world)); HomeWorld = new Lazy(() => dataManager.GetExcelSheet().GetRow(listing.homeWorld)); CurrentWorld = new Lazy(() => dataManager.GetExcelSheet().GetRow(listing.currentWorld));