diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-18 21:56:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-18 21:56:13 +0300 |
commit | ecbca1b63e718f820cd27fc2f91dceb134e4639b (patch) | |
tree | 208bd6145505b0d2475a82779bf5bb85ccf797c8 /src/net/eathena | |
parent | 37f5b0df96cf20b205d0636d499b863f92d4d040 (diff) | |
download | mv-ecbca1b63e718f820cd27fc2f91dceb134e4639b.tar.gz mv-ecbca1b63e718f820cd27fc2f91dceb134e4639b.tar.bz2 mv-ecbca1b63e718f820cd27fc2f91dceb134e4639b.tar.xz mv-ecbca1b63e718f820cd27fc2f91dceb134e4639b.zip |
Remove useless check.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/skillhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index 445a0b78b..27f4b136a 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -295,7 +295,7 @@ void SkillHandler::processSkillDelete(Net::MessageIn &msg) int updateSkill = 0; const int skillId = msg.readInt16("skill id"); const int oldLevel = PlayerInfo::getSkillLevel(skillId); - if (oldLevel && oldLevel != 0) + if (oldLevel != 0) updateSkill = skillId; PlayerInfo::setSkillLevel(skillId, 0); if (skillDialog) |