From 2cd6194db6a42d7afd784ba618dd672a5c50e32e Mon Sep 17 00:00:00 2001 From: Linwenxuan <116782992+Linwenxuan05@users.noreply.github.com> Date: Wed, 8 Nov 2023 13:31:58 +0800 Subject: [PATCH] [Core] Minor Refactor --- .../Internal/Packets/Login/WtLogin/Entity/TransEmp12.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lagrange.Core/Internal/Packets/Login/WtLogin/Entity/TransEmp12.cs b/Lagrange.Core/Internal/Packets/Login/WtLogin/Entity/TransEmp12.cs index 69653eedc..302d5e57d 100644 --- a/Lagrange.Core/Internal/Packets/Login/WtLogin/Entity/TransEmp12.cs +++ b/Lagrange.Core/Internal/Packets/Login/WtLogin/Entity/TransEmp12.cs @@ -28,8 +28,7 @@ protected override BinaryPacket ConstructTransEmp() public static Dictionary Deserialize(BinaryPacket packet, out State qrState) { - qrState = (State)packet.ReadByte(); - if (qrState == State.Confirmed) + if ((qrState = (State)packet.ReadByte()) == State.Confirmed) { packet.Skip(12); // misc unknown data return TlvPacker.ReadTlvCollections(packet, true);