diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/questswindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/questswindow.cpp b/src/gui/questswindow.cpp index 42042e58f..d863e3dbd 100644 --- a/src/gui/questswindow.cpp +++ b/src/gui/questswindow.cpp @@ -259,8 +259,8 @@ void QuestsWindow::loadQuest(const int var, const XmlNodePtr node) delete quest; return; } - quest->incomplete = splitToIntSet(incompleteStr, ','); - quest->complete = splitToIntSet(completeStr, ','); + splitToIntSet(quest->incomplete, incompleteStr, ','); + splitToIntSet(quest->complete, completeStr, ','); if (quest->incomplete.empty() && quest->complete.empty()) { logger->log("complete flags incorrect"); @@ -297,7 +297,7 @@ void QuestsWindow::loadEffect(const int var, const XmlNodePtr node) effect->id = XML::getProperty(node, "npc", -1); effect->effectId = XML::getProperty(node, "effect", -1); const std::string values = XML::getProperty(node, "value", ""); - effect->values = splitToIntSet(values, ','); + splitToIntSet(effect->values, values, ','); if (effect->map.empty() || effect->id == -1 || effect->effectId == -1 || values.empty()) |