From 3f8831853ae2553364bfa27d70adb5e17bf31f71 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Fri, 6 Oct 2023 15:58:11 +0200 Subject: [PATCH] Fix job flags. --- Glamourer.GameData/GameData.cs | 2 +- Glamourer.GameData/Structs/Job.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Glamourer.GameData/GameData.cs b/Glamourer.GameData/GameData.cs index 4a40e05..d5638b0 100644 --- a/Glamourer.GameData/GameData.cs +++ b/Glamourer.GameData/GameData.cs @@ -19,7 +19,7 @@ public static class GameData return _jobs; var sheet = dataManager.GetExcelSheet()!; - _jobs = sheet.ToDictionary(j => (byte)j.RowId, j => new Job(j)); + _jobs = sheet.Where(j => j.Abbreviation.RawData.Length > 0).ToDictionary(j => (byte)j.RowId, j => new Job(j)); return _jobs; } diff --git a/Glamourer.GameData/Structs/Job.cs b/Glamourer.GameData/Structs/Job.cs index 700d3d3..1d2873d 100644 --- a/Glamourer.GameData/Structs/Job.cs +++ b/Glamourer.GameData/Structs/Job.cs @@ -15,7 +15,7 @@ public readonly struct Job => Base.RowId; public JobFlag Flag - => (JobFlag)(1u << (int)Base.RowId); + => (JobFlag)(1ul << (int)Base.RowId); public Job(ClassJob job) {