diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-06 02:50:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 02:50:51 +0300 |
commit | 7092b86c5b9bcfc1b377d090f65ce35427cecc4c (patch) | |
tree | 595b792c8a7fe5ac159fcb97b2b9df44b114dcf6 /src/net/eathena | |
parent | 1c00cf20fb58492489f8137161c552fe4d70d2cb (diff) | |
download | manaplus-7092b86c5b9bcfc1b377d090f65ce35427cecc4c.tar.gz manaplus-7092b86c5b9bcfc1b377d090f65ce35427cecc4c.tar.bz2 manaplus-7092b86c5b9bcfc1b377d090f65ce35427cecc4c.tar.xz manaplus-7092b86c5b9bcfc1b377d090f65ce35427cecc4c.zip |
eathena: fix skills removing.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/skillhandler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index 1f2d9a8ba..a66987f71 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -100,10 +100,12 @@ void SkillHandler::useMap(const int id, const std::string &map) const void SkillHandler::processPlayerSkills(Net::MessageIn &msg) { - msg.readInt16(); // length + msg.readInt16("len"); const int skillCount = (msg.getLength() - 4) / 37; int updateSkill = 0; + if (skillDialog) + skillDialog->hideSkills(); for (int k = 0; k < skillCount; k++) { const int skillId = msg.readInt16("skill id"); |