diff --git a/ProjectLighthouse/Types/Tickets/NPTicket.cs b/ProjectLighthouse/Types/Tickets/NPTicket.cs index 426df2d4..a03bfb2a 100644 --- a/ProjectLighthouse/Types/Tickets/NPTicket.cs +++ b/ProjectLighthouse/Types/Tickets/NPTicket.cs @@ -94,6 +94,13 @@ public class NPTicket reader.ReadUInt16BE(); // Ticket length, we don't care about this + #if DEBUG + SectionHeader bodyHeader = reader.ReadSectionHeader(); + Logger.Log($"bodyHeader.Type is {bodyHeader.Type}", LoggerLevelLogin.Instance); + #else + reader.ReadSectionHeader(); + #endif + switch (npTicket.ticketVersion) { case "2.1": @@ -105,13 +112,6 @@ public class NPTicket default: throw new NotImplementedException(); } - #if DEBUG - SectionHeader bodyHeader = reader.ReadSectionHeader(); - Logger.Log($"bodyHeader.Type is {bodyHeader.Type}", LoggerLevelLogin.Instance); - #else - reader.ReadSectionHeader(); - #endif - if (npTicket.Platform == Platform.Unknown) { Logger.Log($"Could not determine platform from IssuerId {npTicket.IssuerId} decimal", LoggerLevelLogin.Instance);