diff options
-rw-r--r-- | src/net/eathena/loginrecv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/loginrecv.cpp b/src/net/eathena/loginrecv.cpp index 502e2d247..e282d3207 100644 --- a/src/net/eathena/loginrecv.cpp +++ b/src/net/eathena/loginrecv.cpp @@ -179,8 +179,8 @@ void LoginRecv::processServerVersion(Net::MessageIn &msg) if (serverVersion >= 20 && len >= 20) { packetsType = msg.readInt16("server packets type"); - packets_re = (packetsType & 1) ? true : false; - packets_zero = (packetsType & 2) ? true : false; + packets_re = (packetsType & 1) != 0; + packets_zero = (packetsType & 2) != 0; if (packets_re == false && packets_zero == false) { |