summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-16 20:23:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-16 20:23:30 +0300
commit11000f010f19a2de85ba26660b451c7c41ab3a97 (patch)
tree65eee18b5fcb17f35cb90fcc930242e02b0a79f1 /src/gui
parent18bd0722a9cebc3ba80bfb74a5b5ba0dd9e53c75 (diff)
downloadplus-11000f010f19a2de85ba26660b451c7c41ab3a97.tar.gz
plus-11000f010f19a2de85ba26660b451c7c41ab3a97.tar.bz2
plus-11000f010f19a2de85ba26660b451c7c41ab3a97.tar.xz
plus-11000f010f19a2de85ba26660b451c7c41ab3a97.zip
Move MagicSchool enum into separate file and convert to strong typed.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/textcommandeditor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/textcommandeditor.cpp b/src/gui/windows/textcommandeditor.cpp
index b72b82501..32cc0959f 100644
--- a/src/gui/windows/textcommandeditor.cpp
+++ b/src/gui/windows/textcommandeditor.cpp
@@ -264,7 +264,7 @@ void TextCommandEditor::save()
static_cast<CommandTargetT>(mTypeDropDown->getSelected()));
mCommand->setIcon(mIconDropDown->getSelectedString());
mCommand->setBaseLvl(mMagicLvlField->getValue());
- mCommand->setSchool(static_cast<MagicSchool>(
+ mCommand->setSchool(static_cast<MagicSchoolT>(
mSchoolDropDown->getSelected() + MAGIC_START_ID));
mCommand->setSchoolLvl(mSchoolLvlField->getValue());
if (spellManager)
@@ -281,7 +281,7 @@ void TextCommandEditor::deleteCommand()
mCommand->setTargetType(CommandTarget::NoTarget);
mCommand->setIcon("");
mCommand->setBaseLvl(0);
- mCommand->setSchool(SKILL_MAGIC);
+ mCommand->setSchool(MagicSchool::SkillMagic);
mCommand->setSchoolLvl(0);
if (spellManager)
spellManager->save();