From ba88670fe4b5f4606f80651f6433cc755ab6b6c1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 21 Sep 2014 13:01:00 +0300 Subject: Fix updating skills window if some skills was removed. --- src/net/eathena/mercenaryhandler.cpp | 2 ++ src/net/eathena/skillhandler.cpp | 8 ++++++-- src/net/tmwa/skillhandler.cpp | 8 ++++++-- 3 files changed, 14 insertions(+), 4 deletions(-) (limited to 'src/net') diff --git a/src/net/eathena/mercenaryhandler.cpp b/src/net/eathena/mercenaryhandler.cpp index 63c43f093..424bc337c 100644 --- a/src/net/eathena/mercenaryhandler.cpp +++ b/src/net/eathena/mercenaryhandler.cpp @@ -141,6 +141,8 @@ void MercenaryHandler::processMercenarySkills(Net::MessageIn &msg) } } } + if (skillDialog) + skillDialog->update(); } } // namespace EAthena diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index bcd90b6e0..a23700df4 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -151,8 +151,12 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg) } } } - if (updateSkill && skillDialog) - skillDialog->playUpdateEffect(updateSkill); + if (skillDialog) + { + skillDialog->update(); + if (updateSkill) + skillDialog->playUpdateEffect(updateSkill); + } } void SkillHandler::processSkillCoolDown(Net::MessageIn &msg) diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp index bfedcf927..e6d6115eb 100644 --- a/src/net/tmwa/skillhandler.cpp +++ b/src/net/tmwa/skillhandler.cpp @@ -142,8 +142,12 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg) } } } - if (updateSkill && skillDialog) - skillDialog->playUpdateEffect(updateSkill); + if (skillDialog) + { + skillDialog->update(); + if (updateSkill) + skillDialog->playUpdateEffect(updateSkill); + } } } // namespace TmwAthena -- cgit v1.2.3-70-g09d2