summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-01-08 03:21:30 +0300
committerAndrei Karas <akaras@inbox.ru>2018-01-08 03:21:30 +0300
commite6704b8b023f5507be7b1bc5ba0b564e30e6e30f (patch)
tree3274c2c6b3003546d83f53bf422cf40154437ca3 /src
parent79ae444b7e50defd10ae7e331a8f66863b129b51 (diff)
downloadmanaverse-e6704b8b023f5507be7b1bc5ba0b564e30e6e30f.tar.gz
manaverse-e6704b8b023f5507be7b1bc5ba0b564e30e6e30f.tar.bz2
manaverse-e6704b8b023f5507be7b1bc5ba0b564e30e6e30f.tar.xz
manaverse-e6704b8b023f5507be7b1bc5ba0b564e30e6e30f.zip
Fix int to bool conversion in loginrecv.cpp
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/loginrecv.cpp4
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)
{