summaryrefslogtreecommitdiff
path: root/src/gui/skill.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/skill.cpp')
-rw-r--r--src/gui/skill.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp
index 5244b2f3..0e641768 100644
--- a/src/gui/skill.cpp
+++ b/src/gui/skill.cpp
@@ -122,12 +122,11 @@ void SkillDialog::action(const std::string& eventId)
{
// Increment skill
int selectedSkill = skillListBox->getSelected();
- if (char_info->skill_point > 0 && selectedSkill >= 0)
+ if (player_info->skill_point > 0 && selectedSkill >= 0)
{
- WFIFOW(0) = net_w_value(0x0112);
- WFIFOW(2) = net_w_value(
- skillList[selectedSkill]->id);
- WFIFOSET(4);
+ writeWord(0, 0x0112);
+ writeWord(2, skillList[selectedSkill]->id);
+ writeSet(4);
}
}
else if (eventId == "skill")