summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/questswindow.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp
index 9e46cca50..080c0bdd2 100644
--- a/src/gui/windows/questswindow.cpp
+++ b/src/gui/windows/questswindow.cpp
@@ -233,6 +233,17 @@ void QuestsWindow::loadQuest(const int var, const XmlNodePtr node)
std::string str = translator->getStr(data);
replaceItemLinks(str);
+ for (int f = 1; f < 100; f ++)
+ {
+ const std::string key = strprintf("text%d", f);
+ const std::string val = XML::getProperty(dataNode,
+ key.c_str(),
+ "");
+ if (val.empty())
+ break;
+ const std::string param = strprintf("{@@%d}", f);
+ replaceAll(str, param, val);
+ }
if (xmlNameEqual(dataNode, "text"))
{
quest->texts.push_back(QuestItemText(str,