summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-06 20:35:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-06 20:35:52 +0300
commite06101a4c8633a43d813d4a62bde2d9f49c128bf (patch)
tree7b70840bc1da7c37afcd69deba280709b9385ff8
parentf96861c0115f6808d8246b3e6defc828ab3a255e (diff)
downloadmv-e06101a4c8633a43d813d4a62bde2d9f49c128bf.tar.gz
mv-e06101a4c8633a43d813d4a62bde2d9f49c128bf.tar.bz2
mv-e06101a4c8633a43d813d4a62bde2d9f49c128bf.tar.xz
mv-e06101a4c8633a43d813d4a62bde2d9f49c128bf.zip
Set to all quests value 0 by default.
-rw-r--r--src/gui/windows/questswindow.cpp1
1 files changed, 1 insertions, 0 deletions
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"))