summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-20 20:50:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-20 20:50:50 +0300
commit4b19b15936faa8e1d5f331cc11147ccfc360bde7 (patch)
treee601b548c0c55a7e434b30cfff328ca5e3662bee /src/gui/skilldialog.cpp
parent042c4f09e34157522692d6f99f5c51bc04e8f27a (diff)
downloadmanaplus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.gz
manaplus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.bz2
manaplus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.xz
manaplus-4b19b15936faa8e1d5f331cc11147ccfc360bde7.zip
improve a bit code speed.
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r--src/gui/skilldialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index 92c2ecace..1f36d6de9 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -610,7 +610,7 @@ void SkillDialog::addSkill(const int id, const int level, const int range,
skill->id = static_cast<unsigned int>(id);
SkillData *const data = skill->data;
data->name = "Unknown skill Id: " + toString(id);
- data->dispName = "Unknown skill Id: " + toString(id);
+ data->dispName = data->name;
data->description.clear();
data->setIcon("");
skill->modifiable = modifiable;