mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-19 14:27:45 +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;
|
this.jobsPresent = listing.jobsPresent;
|
||||||
|
|
||||||
Id = listing.id;
|
Id = listing.id;
|
||||||
Name = seStringManager.Parse(listing.name);
|
Name = seStringManager.Parse(listing.name.TakeWhile(b => b != 0).ToArray());
|
||||||
Description = seStringManager.Parse(listing.description);
|
Description = seStringManager.Parse(listing.description.TakeWhile(b => b != 0).ToArray());
|
||||||
World = new Lazy<World>(() => dataManager.GetExcelSheet<World>().GetRow(listing.world));
|
World = new Lazy<World>(() => dataManager.GetExcelSheet<World>().GetRow(listing.world));
|
||||||
HomeWorld = new Lazy<World>(() => dataManager.GetExcelSheet<World>().GetRow(listing.homeWorld));
|
HomeWorld = new Lazy<World>(() => dataManager.GetExcelSheet<World>().GetRow(listing.homeWorld));
|
||||||
CurrentWorld = new Lazy<World>(() => dataManager.GetExcelSheet<World>().GetRow(listing.currentWorld));
|
CurrentWorld = new Lazy<World>(() => dataManager.GetExcelSheet<World>().GetRow(listing.currentWorld));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue