summaryrefslogtreecommitdiff
path: root/src/net/tmwa/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-20 17:55:42 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-20 17:55:42 +0300
commit5f7a8dd28733fd460578e43c6b2ea4990afa0670 (patch)
tree0263f50e8a566af4b8d081889316a05e1f048dab /src/net/tmwa/skillhandler.cpp
parentc958cb619f667851b188b8c169d0fcb14500f6de (diff)
downloadplus-5f7a8dd28733fd460578e43c6b2ea4990afa0670.tar.gz
plus-5f7a8dd28733fd460578e43c6b2ea4990afa0670.tar.bz2
plus-5f7a8dd28733fd460578e43c6b2ea4990afa0670.tar.xz
plus-5f7a8dd28733fd460578e43c6b2ea4990afa0670.zip
Use skill owner field in most functions.
Diffstat (limited to 'src/net/tmwa/skillhandler.cpp')
-rw-r--r--src/net/tmwa/skillhandler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp
index 05f7b0d90..bfedcf927 100644
--- a/src/net/tmwa/skillhandler.cpp
+++ b/src/net/tmwa/skillhandler.cpp
@@ -136,7 +136,10 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg)
if (skillDialog)
{
if (!skillDialog->updateSkill(skillId, range, up, inf, sp))
- skillDialog->addSkill(skillId, "", level, range, up, inf, sp);
+ {
+ skillDialog->addSkill(SkillOwner::Player,
+ skillId, "", level, range, up, inf, sp);
+ }
}
}
if (updateSkill && skillDialog)