diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-20 19:12:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-20 19:12:19 +0300 |
commit | ebd21ed95b475d7a411bc6d341fb287b0c125509 (patch) | |
tree | b5db0bb229e36866f0ea546f2f99527259205c9a /src/net/eathena | |
parent | 709c0c8aa1cadef919a106f3c0b83a3b41f5ac1e (diff) | |
download | manaverse-ebd21ed95b475d7a411bc6d341fb287b0c125509.tar.gz manaverse-ebd21ed95b475d7a411bc6d341fb287b0c125509.tar.bz2 manaverse-ebd21ed95b475d7a411bc6d341fb287b0c125509.tar.xz manaverse-ebd21ed95b475d7a411bc6d341fb287b0c125509.zip |
Remove mercenary skills if mercenary was removed.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/mercenaryhandler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/eathena/mercenaryhandler.cpp b/src/net/eathena/mercenaryhandler.cpp index 2a44e86ca..63c43f093 100644 --- a/src/net/eathena/mercenaryhandler.cpp +++ b/src/net/eathena/mercenaryhandler.cpp @@ -24,6 +24,7 @@ #include "logger.h" #include "being/being.h" +#include "being/localplayer.h" #include "being/playerinfo.h" #include "gui/windows/skilldialog.h" @@ -110,6 +111,8 @@ void MercenaryHandler::processMercenaryInfo(Net::MessageIn &msg) dstBeing->setName(name); dstBeing->setLevel(level); dstBeing->setAttackRange(range); + if (localPlayer) + localPlayer->setMercenary(dstBeing->getId()); } } |