From e06101a4c8633a43d813d4a62bde2d9f49c128bf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 6 Sep 2015 20:35:52 +0300 Subject: Set to all quests value 0 by default. --- src/gui/windows/questswindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/windows') diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp index 24b11d308..690781cea 100644 --- a/src/gui/windows/questswindow.cpp +++ b/src/gui/windows/questswindow.cpp @@ -184,6 +184,7 @@ void QuestsWindow::loadXmlFile(const std::string &fileName) const int id = XML::getProperty(varNode, "id", 0); if (id < 0) continue; + mVars[id] = 0; for_each_xml_child_node(questNode, varNode) { if (xmlNameEqual(questNode, "quest")) -- cgit v1.2.3-70-g09d2