diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-05 12:20:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:57 +0300 |
commit | 2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4 (patch) | |
tree | 2c0feb59deb99dbd45338ed813177c6826b543fb /src/net/eathena/skillhandler.cpp | |
parent | 57978a09e9d32a44a95823716d790065d73f977a (diff) | |
download | manaplus-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.tar.gz manaplus-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.tar.bz2 manaplus-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.tar.xz manaplus-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.zip |
Use skill type struct in skill info.
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r-- | src/net/eathena/skillhandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index 09580b8fc..1f2d9a8ba 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -107,7 +107,8 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg) for (int k = 0; k < skillCount; k++) { const int skillId = msg.readInt16("skill id"); - const int inf = msg.readInt32("inf"); + const SkillType::SkillType inf = static_cast<SkillType::SkillType>( + msg.readInt32("inf")); const int level = msg.readInt16("skill level"); msg.readInt16("sp"); const int range = msg.readInt16("range"); |