summaryrefslogtreecommitdiff
path: root/src/net/ea
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/ea
parent57978a09e9d32a44a95823716d790065d73f977a (diff)
downloadplus-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.tar.gz
plus-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.tar.bz2
plus-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.tar.xz
plus-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.zip
Use skill type struct in skill info.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/skillhandler.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/net/ea/skillhandler.cpp b/src/net/ea/skillhandler.cpp
index f3c2a6982..8a7f42d82 100644
--- a/src/net/ea/skillhandler.cpp
+++ b/src/net/ea/skillhandler.cpp
@@ -88,8 +88,11 @@ void SkillHandler::processPlayerSkillUp(Net::MessageIn &msg)
PlayerInfo::setSkillLevel(skillId, level);
if (skillDialog)
{
- if (!skillDialog->updateSkill(skillId, range, up, 0))
- skillDialog->addSkill(skillId, "", level, range, up, 0);
+ if (!skillDialog->updateSkill(skillId, range, up, SkillType::Unknown))
+ {
+ skillDialog->addSkill(skillId, "", level,
+ range, up, SkillType::Unknown);
+ }
}
}