diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-11-19 01:25:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-11-19 01:25:34 +0300 |
commit | cadc0f8b6d0bd71f319c3e6576af05dcd0a7533f (patch) | |
tree | 692b25d77bb4f704c36ee2b58499f73066a65d66 /src/gui/questswindow.cpp | |
parent | 7457ac2414e25077a44ac6bc603544f4f09f7f21 (diff) | |
download | plus-cadc0f8b6d0bd71f319c3e6576af05dcd0a7533f.tar.gz plus-cadc0f8b6d0bd71f319c3e6576af05dcd0a7533f.tar.bz2 plus-cadc0f8b6d0bd71f319c3e6576af05dcd0a7533f.tar.xz plus-cadc0f8b6d0bd71f319c3e6576af05dcd0a7533f.zip |
Fix compilation error without C++11 flags.
Error was introduced in previous commits.
Diffstat (limited to 'src/gui/questswindow.cpp')
-rw-r--r-- | src/gui/questswindow.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/questswindow.cpp b/src/gui/questswindow.cpp index 2e77da8ac..3991c8172 100644 --- a/src/gui/questswindow.cpp +++ b/src/gui/questswindow.cpp @@ -230,11 +230,11 @@ void QuestsWindow::loadQuest(const int var, const XmlNodePtr node) std::string str = translator->getStr(data); if (xmlNameEqual(dataNode, "text")) - quest->texts.push_back(QuestItemText(str, QuestType::QUEST_TEXT)); + quest->texts.push_back(QuestItemText(str, QUEST_TEXT)); else if (xmlNameEqual(dataNode, "name")) - quest->texts.push_back(QuestItemText(str, QuestType::QUEST_NAME)); + quest->texts.push_back(QuestItemText(str, QUEST_NAME)); else if (xmlNameEqual(dataNode, "reward")) - quest->texts.push_back(QuestItemText(str, QuestType::QUEST_REWARD)); + quest->texts.push_back(QuestItemText(str, QUEST_REWARD)); } mQuests[var].push_back(quest); } @@ -378,11 +378,12 @@ void QuestsWindow::showQuest(const QuestItem *const quest) const QuestItemText &data = *it; switch (data.type) { - case QuestType::QUEST_TEXT: + case QUEST_TEXT: + case QUEST_REWARD: default: mText->addRow(translator->getStr(data.text)); break; - case QuestType::QUEST_NAME: + case QUEST_NAME: mText->addRow("[" + translator->getStr(data.text) + "]"); break; } |