From cfb38c33d6165128e8950016d5ebe8779a7f7af8 Mon Sep 17 00:00:00 2001 From: Zukero Date: Fri, 18 Aug 2017 11:51:48 +0200 Subject: [PATCH] Fixed bug preventing Quests with no quest stages from loading. --- src/com/gpl/rpg/atcontentstudio/model/gamedata/Quest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/gpl/rpg/atcontentstudio/model/gamedata/Quest.java b/src/com/gpl/rpg/atcontentstudio/model/gamedata/Quest.java index c1e683a..cbb993c 100644 --- a/src/com/gpl/rpg/atcontentstudio/model/gamedata/Quest.java +++ b/src/com/gpl/rpg/atcontentstudio/model/gamedata/Quest.java @@ -99,8 +99,8 @@ public class Quest extends JSONElement { public void parse(Map questJson) { this.visible_in_log = JSONElement.getInteger((Number) questJson.get("showInLog")); List questStagesJson = (List) questJson.get("stages"); + this.stages = new ArrayList(); if (questStagesJson != null && !questStagesJson.isEmpty()) { - this.stages = new ArrayList(); for (Object questStageJsonObj : questStagesJson) { Map questStageJson = (Map)questStageJsonObj; QuestStage questStage = new QuestStage(this);