From 3e6a80cc32acf9b1a3fc47d5ca722c8ba710b900 Mon Sep 17 00:00:00 2001 From: jvyden Date: Sun, 30 Jan 2022 15:36:48 -0500 Subject: [PATCH] Fix reading in wrong order --- ProjectLighthouse/Types/Tickets/NPTicket.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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);