diff options
Diffstat (limited to 'src/gui/windows/questswindow.cpp')
-rw-r--r-- | src/gui/windows/questswindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp index 144f9b3d0..24b11d308 100644 --- a/src/gui/windows/questswindow.cpp +++ b/src/gui/windows/questswindow.cpp @@ -197,6 +197,8 @@ void QuestsWindow::loadXmlFile(const std::string &fileName) void QuestsWindow::loadQuest(const int var, const XmlNodePtr node) { + if (!node) + return; QuestItem *const quest = new QuestItem(); // TRANSLATORS: quests window quest name quest->name = XML::langProperty(node, "name", _("unknown")); |