summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-07 21:01:35 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-07 21:38:22 +0300
commita9732d3ad6115ad7d590e819631dfbd764d13d3e (patch)
treec62984bf527305f275a521e227d785df769c1351 /src/net/eathena
parentb43854b65e0c8bdbc37db2a0b6e2e86ebf11e7f7 (diff)
downloadmanaplus-a9732d3ad6115ad7d590e819631dfbd764d13d3e.tar.gz
manaplus-a9732d3ad6115ad7d590e819631dfbd764d13d3e.tar.bz2
manaplus-a9732d3ad6115ad7d590e819631dfbd764d13d3e.tar.xz
manaplus-a9732d3ad6115ad7d590e819631dfbd764d13d3e.zip
remove useless checks.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/beinghandler.cpp7
-rw-r--r--src/net/eathena/charserverhandler.cpp2
2 files changed, 3 insertions, 6 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index f62d4d9db..6fb7ee087 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -377,11 +377,8 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg,
default:
logger->log("QQQ3 CHANGE_LOOKS: unsupported type: "
"%d, id: %d", type, id);
- if (dstBeing)
- {
- logger->log("ID: " + toString(dstBeing->getId()));
- logger->log("name: " + toString(dstBeing->getName()));
- }
+ logger->log("ID: " + toString(dstBeing->getId()));
+ logger->log("name: " + toString(dstBeing->getName()));
break;
}
}
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index 2fee39a03..ca4275ebe 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -286,7 +286,7 @@ void CharServerHandler::processCharLogin(Net::MessageIn &msg)
Net::Character *const character = new Net::Character;
readPlayerData(msg, character, false);
mCharacters.push_back(character);
- if (character && character->dummy)
+ if (character->dummy)
{
logger->log("CharServer: Player: %s (%d)",
character->dummy->getName().c_str(), character->slot);