From bb4091872217aeda23b39b032bf2209cf2a92b64 Mon Sep 17 00:00:00 2001 From: Chomp Date: Sat, 11 Sep 2021 14:07:34 +0100 Subject: [PATCH] fix bug in stack count --- QuestValidator/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QuestValidator/Program.cs b/QuestValidator/Program.cs index 9b4b13c..82286e2 100644 --- a/QuestValidator/Program.cs +++ b/QuestValidator/Program.cs @@ -119,9 +119,9 @@ namespace QuestValidator CheckValuesMatch(questSuccessRewardItem.value, relatedLiveRewardItem.value, "mismatch for success item reward value", questSuccessRewardItem.id); // Check item stack count - if (questSuccessRewardItem.items[0] != null && questSuccessRewardItem.items[0].upd != null) + if (questSuccessRewardItem.items[0]?.upd != null && relatedLiveRewardItem.items[0]?.upd != null) { - CheckValuesMatch(questSuccessRewardItem.items[0].upd.StackObjectsCount, questSuccessRewardItem.items[0].upd.StackObjectsCount, "mismatch for success item StackObjectsCount", questSuccessRewardItem.items[0]._id); + CheckValuesMatch(questSuccessRewardItem.items[0].upd.StackObjectsCount, relatedLiveRewardItem.items[0].upd.StackObjectsCount, "mismatch for success item StackObjectsCount", questSuccessRewardItem.items[0]._id); } // check sub items match