Skip to content

Commit

Permalink
Fixed opcode offset
Browse files Browse the repository at this point in the history
  • Loading branch information
AtefR committed Oct 11, 2020
1 parent 60a0e49 commit de52d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sniffer/Models/Packet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class Packet
public PacketType Type { get; set; }
public byte[] Data { get; set; }
public BinaryReader Binary { get; set; }
public short OpCode => Data[0];
public short OpCode => Data[8];
public Packet(PacketType type, byte[] data)
{
Type = type;
Expand Down

0 comments on commit de52d08

Please sign in to comment.