summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/specialhandler.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/ea/specialhandler.cpp b/src/net/ea/specialhandler.cpp
index 7b2ef601a..dd0284ae8 100644
--- a/src/net/ea/specialhandler.cpp
+++ b/src/net/ea/specialhandler.cpp
@@ -90,15 +90,15 @@ void SpecialHandler::processPlayerSkills(Net::MessageIn &msg)
msg.skip(2); // skill pool flags
int level = msg.readInt16();
msg.readInt16(); // sp
- msg.readInt16(); // range
+ int range = msg.readInt16();
msg.skip(24); // 0 unused
int up = msg.readInt8();
PlayerInfo::setStatBase(skillId, level);
if (skillDialog)
{
- if (!skillDialog->setModifiable(skillId, up))
- skillDialog->addSkill(skillId, level, up);
+ if (!skillDialog->updateSkill(skillId, range, up))
+ skillDialog->addSkill(skillId, level, range, up);
}
}
}
@@ -108,14 +108,14 @@ void SpecialHandler::processPlayerSkillUp(Net::MessageIn &msg)
const int skillId = msg.readInt16();
const int level = msg.readInt16();
msg.readInt16(); // sp
- msg.readInt16(); // range
+ int range = msg.readInt16();
int up = msg.readInt8();
PlayerInfo::setStatBase(skillId, level);
if (skillDialog)
{
- if (!skillDialog->setModifiable(skillId, up))
- skillDialog->addSkill(skillId, level, up);
+ if (!skillDialog->updateSkill(skillId, range, up))
+ skillDialog->addSkill(skillId, level, range, up);
}
}