From 3125abdf853768cdeeb2bba568c4a4a0c5853c5c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Jul 2016 01:35:22 +0300 Subject: In quest text replace links after adding text format parameters. --- src/gui/windows/questswindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/windows') 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, -- cgit v1.2.3-60-g2f50