From 8419a479883367ae7d07b3f5a83e65730d7c4a5f Mon Sep 17 00:00:00 2001 From: Chomp Date: Sat, 18 Sep 2021 22:30:32 +0100 Subject: [PATCH] Add saftey to code --- QuestValidator/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/QuestValidator/Program.cs b/QuestValidator/Program.cs index 11c776c..f0f92a0 100644 --- a/QuestValidator/Program.cs +++ b/QuestValidator/Program.cs @@ -456,7 +456,10 @@ namespace QuestValidator CheckValuesMatch(availableForFinishItem._props.parentId, liveFinishItem._props.parentId, "AvailableForFinish parentId mismatch", availableForFinishItem._props.id); // check AvailableForFinish resetOnSessionEnd + if (availableForFinishItem._props.resetOnSessionEnd.HasValue && liveFinishItem._props.resetOnSessionEnd.HasValue) + { CheckValuesMatch(availableForFinishItem._props.resetOnSessionEnd.Value, liveFinishItem._props.resetOnSessionEnd.Value, "AvailableForFinish resetOnSessionEnd value mismatch", availableForFinishItem._props.id); + } // check AvailableForFinish target CheckValuesMatch(Convert.ToString(availableForFinishItem._props.target), Convert.ToString(liveFinishItem._props.target), "AvailableForFinish target value mismatch", availableForFinishItem._props.id);