diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-20 17:55:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-20 17:55:42 +0300 |
commit | 5f7a8dd28733fd460578e43c6b2ea4990afa0670 (patch) | |
tree | 0263f50e8a566af4b8d081889316a05e1f048dab /src/net/tmwa | |
parent | c958cb619f667851b188b8c169d0fcb14500f6de (diff) | |
download | manaplus-5f7a8dd28733fd460578e43c6b2ea4990afa0670.tar.gz manaplus-5f7a8dd28733fd460578e43c6b2ea4990afa0670.tar.bz2 manaplus-5f7a8dd28733fd460578e43c6b2ea4990afa0670.tar.xz manaplus-5f7a8dd28733fd460578e43c6b2ea4990afa0670.zip |
Use skill owner field in most functions.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/skillhandler.cpp | 5 |
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) |