From 76886a84c8c197a1f46f711e15569b6991e5555a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 22 Jun 2013 23:28:47 +0300 Subject: improve function for splitting string to ints. --- src/gui/questswindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui') 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()) -- cgit v1.2.3-70-g09d2