diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-21 00:42:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-21 00:42:32 +0300 |
commit | 849bf8bca7d8df41bc6adca236fef8ba2886d1ff (patch) | |
tree | bb0587c4b02e7033460358f8a7182c94555ed905 /src/net/eathena | |
parent | 0de4bb29a90db0f6493263b8db4cb1329935b5a3 (diff) | |
download | manaverse-849bf8bca7d8df41bc6adca236fef8ba2886d1ff.tar.gz manaverse-849bf8bca7d8df41bc6adca236fef8ba2886d1ff.tar.bz2 manaverse-849bf8bca7d8df41bc6adca236fef8ba2886d1ff.tar.xz manaverse-849bf8bca7d8df41bc6adca236fef8ba2886d1ff.zip |
Remove useless checks.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/beingrecv.cpp | 3 | ||||
-rw-r--r-- | src/net/eathena/loginrecv.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp index c744fae34..5ab7bf5e3 100644 --- a/src/net/eathena/beingrecv.cpp +++ b/src/net/eathena/beingrecv.cpp @@ -1424,8 +1424,7 @@ void BeingRecv::processBeingAttrs(Net::MessageIn &msg) { if (dstBeing == localPlayer) localPlayer->setGMLevel(0); - if (dstBeing) - dstBeing->setGM(false); + dstBeing->setGM(false); } if (haveMount) { diff --git a/src/net/eathena/loginrecv.cpp b/src/net/eathena/loginrecv.cpp index 840869703..220257ba6 100644 --- a/src/net/eathena/loginrecv.cpp +++ b/src/net/eathena/loginrecv.cpp @@ -132,7 +132,7 @@ void LoginRecv::processUpdateHost2(Net::MessageIn &msg) { logger->log1("Warning: incorrect update server name"); loginData.updateHosts.clear(); - break; + break; } } |