summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-05 12:20:58 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:57 +0300
commit2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4 (patch)
tree2c0feb59deb99dbd45338ed813177c6826b543fb /src/gui/widgets
parent57978a09e9d32a44a95823716d790065d73f977a (diff)
downloadmv-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.tar.gz
mv-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.tar.bz2
mv-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.tar.xz
mv-2cdf1b18d5593dfecacfc7b2e113c404dc64d1f4.zip
Use skill type struct in skill info.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/skillinfo.cpp2
-rw-r--r--src/gui/widgets/skillinfo.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/skillinfo.cpp b/src/gui/widgets/skillinfo.cpp
index 93b9bcf60..bd889865d 100644
--- a/src/gui/widgets/skillinfo.cpp
+++ b/src/gui/widgets/skillinfo.cpp
@@ -48,7 +48,7 @@ SkillInfo::SkillInfo() :
skillLevelWidth(0),
id(0),
range(0),
- type(0),
+ type(SkillType::Unknown),
modifiable(false),
visible(false)
{
diff --git a/src/gui/widgets/skillinfo.h b/src/gui/widgets/skillinfo.h
index f096da9ac..10d6191df 100644
--- a/src/gui/widgets/skillinfo.h
+++ b/src/gui/widgets/skillinfo.h
@@ -25,6 +25,8 @@
#include "gui/color.h"
+#include "resources/skilltype.h"
+
#include <vector>
#include <map>
#include <string>
@@ -53,7 +55,7 @@ struct SkillInfo final
int skillLevelWidth;
unsigned int id;
int range;
- int type;
+ SkillType::SkillType type;
bool modifiable;
bool visible;