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.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp
index a82b5c6a..5b065e47 100644
--- a/src/gui/skill.cpp
+++ b/src/gui/skill.cpp
@@ -166,8 +166,8 @@ std::string SkillDialog::getElementAt(int i)
char tmp[128];
sprintf(tmp, "%s Lv: %i Sp: %i",
skill_db[skillList[i]->id],
- skillList[i]->lvl,
- skillList[i]->mp);
+ skillList[i]->lv,
+ skillList[i]->sp);
return tmp;
}
return "";
@@ -188,8 +188,8 @@ void SkillDialog::addSkill(int id, int lvl, int mp)
printf("%i\n", id);
SKILL *tmp = new SKILL();
tmp->id = id;
- tmp->lvl = lvl;
- tmp->mp = mp;
+ tmp->lv = lvl;
+ tmp->sp = mp;
skillList.push_back(tmp);
}
@@ -197,8 +197,8 @@ void SkillDialog::setSkill(int id, int lvl, int mp)
{
for (unsigned int i = 0; i < skillList.size(); i++) {
if (skillList[i]->id == id) {
- skillList[i]->lvl = lvl;
- skillList[i]->mp = mp;
+ skillList[i]->lv = lvl;
+ skillList[i]->sp = mp;
}
}
}