summaryrefslogtreecommitdiff
path: root/src/net/tmwa/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-05 12:20:58 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:57 +0300
commit2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4 (patch)
tree2c0feb59deb99dbd45338ed813177c6826b543fb /src/net/tmwa/skillhandler.cpp
parent57978a09e9d32a44a95823716d790065d73f977a (diff)
downloadmv-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.tar.gz
mv-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.tar.bz2
mv-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.tar.xz
mv-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.zip
Use skill type struct in skill info.
Diffstat (limited to 'src/net/tmwa/skillhandler.cpp')
-rw-r--r--src/net/tmwa/skillhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp
index 8b0d6f662..65f86d4bc 100644
--- a/src/net/tmwa/skillhandler.cpp
+++ b/src/net/tmwa/skillhandler.cpp
@@ -109,7 +109,8 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg)
for (int k = 0; k < skillCount; k++)
{
const int skillId = msg.readInt16();
- const int inf = msg.readInt16();
+ const SkillType::SkillType inf = static_cast<SkillType::SkillType>(
+ msg.readInt16());
msg.skip(2); // skill pool flags
const int level = msg.readInt16();
msg.readInt16(); // sp