diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-21 15:28:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-21 15:28:25 +0300 |
commit | 691928f93da5874e62171f569baeb7e3c73e2c16 (patch) | |
tree | 453433ca1776f6e0b0670bcd02c483406b55c11b /src/net/eathena | |
parent | 5ce3ea5e8377a1f9898dc08b6cc7f3a9679f4232 (diff) | |
download | ManaVerse-691928f93da5874e62171f569baeb7e3c73e2c16.tar.gz ManaVerse-691928f93da5874e62171f569baeb7e3c73e2c16.tar.bz2 ManaVerse-691928f93da5874e62171f569baeb7e3c73e2c16.tar.xz ManaVerse-691928f93da5874e62171f569baeb7e3c73e2c16.zip |
Restore all usable mercenary stats if it respawned.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/mercenaryhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/mercenaryhandler.cpp b/src/net/eathena/mercenaryhandler.cpp index d197b6101..702319c01 100644 --- a/src/net/eathena/mercenaryhandler.cpp +++ b/src/net/eathena/mercenaryhandler.cpp @@ -115,10 +115,10 @@ void MercenaryHandler::processMercenaryInfo(Net::MessageIn &msg) MercenaryInfo *const mercenary = new MercenaryInfo; mercenary->id = dstBeing->getId(); mercenary->name = name; + mercenary->level = level; + mercenary->range = range; PlayerInfo::setMercenary(mercenary); PlayerInfo::setMercenaryBeing(dstBeing); - dstBeing->setLevel(level); - dstBeing->setAttackRange(range); } } |