diff --git a/ProjectLighthouse/Types/Tickets/TicketReader.cs b/ProjectLighthouse/Types/Tickets/TicketReader.cs index 78d31327..7a9deeb5 100644 --- a/ProjectLighthouse/Types/Tickets/TicketReader.cs +++ b/ProjectLighthouse/Types/Tickets/TicketReader.cs @@ -11,7 +11,7 @@ public class TicketReader : BinaryReader public TicketReader([NotNull] Stream input) : base(input) {} - public Version ReadTicketVersion() => new(this.ReadByte() >> 4, this.ReadByte()); + public Version ReadTicketVersion() => new((byte)(this.ReadByte() >> 4), this.ReadByte()); public SectionHeader ReadSectionHeader() { diff --git a/ProjectLighthouse/Types/Version.cs b/ProjectLighthouse/Types/Version.cs index eb9f3649..e66bf026 100644 --- a/ProjectLighthouse/Types/Version.cs +++ b/ProjectLighthouse/Types/Version.cs @@ -1,11 +1,11 @@ namespace LBPUnion.ProjectLighthouse.Types; -public class Version +public struct Version { - public int Major { get; set; } - public int Minor { get; set; } + public byte Major { get; set; } + public byte Minor { get; set; } - public Version(int major, int minor) + public Version(byte major, byte minor) { this.Major = major; this.Minor = minor;