summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-01-16 20:20:36 +0300
committerAndrei Karas <akaras@inbox.ru>2013-01-16 20:20:36 +0300
commitc196a7329f0b05537bed8be834a510d7fd5c32f4 (patch)
treec18dfb879ccf6139050f68973591dd7efc01de65
parentd0be60aa322eae93fa33cb158c3056ca61891f9c (diff)
downloadmanaverse-c196a7329f0b05537bed8be834a510d7fd5c32f4.tar.gz
manaverse-c196a7329f0b05537bed8be834a510d7fd5c32f4.tar.bz2
manaverse-c196a7329f0b05537bed8be834a510d7fd5c32f4.tar.xz
manaverse-c196a7329f0b05537bed8be834a510d7fd5c32f4.zip
Fix loading quests with missing attributes.
-rw-r--r--src/gui/questswindow.cpp2
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;