summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r--src/gui/skilldialog.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index 992877671..ee2834a35 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -727,6 +727,14 @@ SkillData *SkillInfo::getData(const int l)
return (*it).second;
}
+SkillData *SkillInfo::getData1(const int l)
+{
+ SkillDataMapIter it = dataMap.find(l);
+ if (it == dataMap.end())
+ return dataMap[0];
+ return (*it).second;
+}
+
SkillData::SkillData() :
icon(nullptr)
{