summaryrefslogtreecommitdiff
path: root/src/gui/windows/textcommandeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/textcommandeditor.cpp')
-rw-r--r--src/gui/windows/textcommandeditor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windows/textcommandeditor.cpp b/src/gui/windows/textcommandeditor.cpp
index 2eccb255d..29e1bd81e 100644
--- a/src/gui/windows/textcommandeditor.cpp
+++ b/src/gui/windows/textcommandeditor.cpp
@@ -138,9 +138,10 @@ TextCommandEditor::TextCommandEditor(TextCommand *const command) :
mCommandTextField->setText(command->getCommand());
mCommentTextField->setText(command->getComment());
mManaField->setValue(command->getMana());
- mTypeDropDown->setSelected(command->getTargetType());
+ mTypeDropDown->setSelected(static_cast<int>(command->getTargetType()));
mMagicLvlField->setValue(command->getBaseLvl());
- mSchoolDropDown->setSelected(command->getSchool() - MAGIC_START_ID);
+ mSchoolDropDown->setSelected(static_cast<int>(command->getSchool())
+ - MAGIC_START_ID);
mSchoolLvlField->setValue(command->getSchoolLvl());
ContainerPlacer placer;