summaryrefslogtreecommitdiff
path: root/src/being/playerinfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-21 15:28:25 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-21 15:28:25 +0300
commit691928f93da5874e62171f569baeb7e3c73e2c16 (patch)
tree453433ca1776f6e0b0670bcd02c483406b55c11b /src/being/playerinfo.cpp
parent5ce3ea5e8377a1f9898dc08b6cc7f3a9679f4232 (diff)
downloadmanaverse-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/being/playerinfo.cpp')
-rw-r--r--src/being/playerinfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp
index ba36d59a3..e23c4c1b5 100644
--- a/src/being/playerinfo.cpp
+++ b/src/being/playerinfo.cpp
@@ -479,6 +479,8 @@ void setMercenaryBeing(Being *const being)
return;
being->setName(mMercenary->name);
being->setOwner(localPlayer);
+ being->setLevel(mMercenary->level);
+ being->setAttackRange(mMercenary->range);
}
MercenaryInfo *getMercenary()