diff --git a/GenerateQuestFile/Program.cs b/GenerateQuestFile/Program.cs index 77697ed..6395a69 100644 --- a/GenerateQuestFile/Program.cs +++ b/GenerateQuestFile/Program.cs @@ -66,6 +66,12 @@ namespace GenerateQuestFile var originalQuest = existingQuestData.FirstOrDefault(x => x.Key == quest.Key).Value; + if (originalQuest is null) + { + LoggingHelpers.LogWarning($"Cant check for original start conditions. Unable to find original quest {quest.Key} {QuestHelper.GetQuestNameById(quest.Key)}. skipping."); + continue; + } + // quest has start conditions, check to ensure they're carried over if (originalQuest.conditions.AvailableForStart.Count > 0) {