diff options
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/textcommandeditor.cpp | 4 |
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(); |