diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-01-16 20:20:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-01-16 20:20:36 +0300 |
commit | c196a7329f0b05537bed8be834a510d7fd5c32f4 (patch) | |
tree | c18dfb879ccf6139050f68973591dd7efc01de65 | |
parent | d0be60aa322eae93fa33cb158c3056ca61891f9c (diff) | |
download | plus-c196a7329f0b05537bed8be834a510d7fd5c32f4.tar.gz plus-c196a7329f0b05537bed8be834a510d7fd5c32f4.tar.bz2 plus-c196a7329f0b05537bed8be834a510d7fd5c32f4.tar.xz plus-c196a7329f0b05537bed8be834a510d7fd5c32f4.zip |
Fix loading quests with missing attributes.
-rw-r--r-- | src/gui/questswindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/questswindow.cpp b/src/gui/questswindow.cpp index 16fe7190b..cb03904a9 100644 --- a/src/gui/questswindow.cpp +++ b/src/gui/questswindow.cpp @@ -205,7 +205,7 @@ void QuestsWindow::loadQuest(const int var, const XmlNodePtr node) quest->group = XML::getProperty(node, "group", ""); std::string incompleteStr = XML::getProperty(node, "incomplete", ""); std::string completeStr = XML::getProperty(node, "complete", ""); - if (incompleteStr.empty() || completeStr.empty()) + if (incompleteStr.empty() && completeStr.empty()) { logger->log("complete flags incorrect"); delete quest; |