From 18bd0722a9cebc3ba80bfb74a5b5ba0dd9e53c75 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Nov 2015 20:02:04 +0300 Subject: Rename SpellTarget into CommandTarget enum and convert it to strong typed. --- src/gui/windows/textcommandeditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/windows/textcommandeditor.cpp') 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(mTypeDropDown->getSelected())); + static_cast(mTypeDropDown->getSelected())); mCommand->setIcon(mIconDropDown->getSelectedString()); mCommand->setBaseLvl(mMagicLvlField->getValue()); mCommand->setSchool(static_cast( @@ -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); -- cgit v1.2.3-70-g09d2