diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-16 20:02:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-16 20:02:04 +0300 |
commit | 18bd0722a9cebc3ba80bfb74a5b5ba0dd9e53c75 (patch) | |
tree | 179d12121a4e588efa53c67a207e2ab5392d99eb /src/gui/windows/textcommandeditor.cpp | |
parent | 44cdf80268135a21ddb09710fc029e808fb3f519 (diff) | |
download | plus-18bd0722a9cebc3ba80bfb74a5b5ba0dd9e53c75.tar.gz plus-18bd0722a9cebc3ba80bfb74a5b5ba0dd9e53c75.tar.bz2 plus-18bd0722a9cebc3ba80bfb74a5b5ba0dd9e53c75.tar.xz plus-18bd0722a9cebc3ba80bfb74a5b5ba0dd9e53c75.zip |
Rename SpellTarget into CommandTarget enum and convert it to strong typed.
Diffstat (limited to 'src/gui/windows/textcommandeditor.cpp')
-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 4269508aa..b72b82501 100644 --- a/src/gui/windows/textcommandeditor.cpp +++ b/src/gui/windows/textcommandeditor.cpp @@ -261,7 +261,7 @@ void TextCommandEditor::save() mCommand->setComment(mCommentTextField->getText()); mCommand->setMana(mManaField->getValue()); mCommand->setTargetType( - static_cast<SpellTarget>(mTypeDropDown->getSelected())); + static_cast<CommandTargetT>(mTypeDropDown->getSelected())); mCommand->setIcon(mIconDropDown->getSelectedString()); mCommand->setBaseLvl(mMagicLvlField->getValue()); mCommand->setSchool(static_cast<MagicSchool>( @@ -278,7 +278,7 @@ void TextCommandEditor::deleteCommand() mCommand->setCommand(""); mCommand->setComment(""); mCommand->setMana(0); - mCommand->setTargetType(NOTARGET); + mCommand->setTargetType(CommandTarget::NoTarget); mCommand->setIcon(""); mCommand->setBaseLvl(0); mCommand->setSchool(SKILL_MAGIC); |