summaryrefslogtreecommitdiff
path: root/src/gui/windows/questswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-09 01:35:22 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-09 01:35:22 +0300
commit3125abdf853768cdeeb2bba568c4a4a0c5853c5c (patch)
treeda3477a0957348251440e49b8971dc79b2174437 /src/gui/windows/questswindow.cpp
parentab2e469db696f6407f7953638ac0a4036ec713ad (diff)
downloadplus-3125abdf853768cdeeb2bba568c4a4a0c5853c5c.tar.gz
plus-3125abdf853768cdeeb2bba568c4a4a0c5853c5c.tar.bz2
plus-3125abdf853768cdeeb2bba568c4a4a0c5853c5c.tar.xz
plus-3125abdf853768cdeeb2bba568c4a4a0c5853c5c.zip
In quest text replace links after adding text format parameters.
Diffstat (limited to 'src/gui/windows/questswindow.cpp')
-rw-r--r--src/gui/windows/questswindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp
index c75fde58f..a8c86e097 100644
--- a/src/gui/windows/questswindow.cpp
+++ b/src/gui/windows/questswindow.cpp
@@ -234,7 +234,6 @@ void QuestsWindow::loadQuest(const int var, const XmlNodePtr node)
if (!data)
continue;
std::string str = translator->getStr(data);
- replaceItemLinks(str);
for (int f = 1; f < 100; f ++)
{
@@ -247,6 +246,7 @@ void QuestsWindow::loadQuest(const int var, const XmlNodePtr node)
const std::string param = strprintf("{@@%d}", f);
replaceAll(str, param, val);
}
+ replaceItemLinks(str);
if (xmlNameEqual(dataNode, "text"))
{
quest->texts.push_back(QuestItemText(str,