mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
fix: only look at non-null bytes
This commit is contained in:
parent
66b4d19603
commit
5dde360e02
1 changed files with 2 additions and 2 deletions
|
|
@ -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<World>(() => dataManager.GetExcelSheet<World>().GetRow(listing.world));
|
||||
HomeWorld = new Lazy<World>(() => dataManager.GetExcelSheet<World>().GetRow(listing.homeWorld));
|
||||
CurrentWorld = new Lazy<World>(() => dataManager.GetExcelSheet<World>().GetRow(listing.currentWorld));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue