diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-09 01:35:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-09 01:35:22 +0300 |
commit | 3125abdf853768cdeeb2bba568c4a4a0c5853c5c (patch) | |
tree | da3477a0957348251440e49b8971dc79b2174437 /src/gui | |
parent | ab2e469db696f6407f7953638ac0a4036ec713ad (diff) | |
download | plus-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')
-rw-r--r-- | src/gui/windows/questswindow.cpp | 2 |
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, |