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 /src/gui/questswindow.cpp | |
parent | d0be60aa322eae93fa33cb158c3056ca61891f9c (diff) | |
download | mv-c196a7329f0b05537bed8be834a510d7fd5c32f4.tar.gz mv-c196a7329f0b05537bed8be834a510d7fd5c32f4.tar.bz2 mv-c196a7329f0b05537bed8be834a510d7fd5c32f4.tar.xz mv-c196a7329f0b05537bed8be834a510d7fd5c32f4.zip |
Fix loading quests with missing attributes.
Diffstat (limited to 'src/gui/questswindow.cpp')
-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; |