diff --git a/CoreBots.cs b/CoreBots.cs index f1a7ac821..cb868f254 100644 --- a/CoreBots.cs +++ b/CoreBots.cs @@ -1979,11 +1979,7 @@ public void RegisterQuests(params int[] questIDs) if (activeQuest != null) { ItemBase? reward = InitializeWithRetries(() => activeQuest.Rewards.FirstOrDefault(r => r != null && r.Quantity < r.MaxStack)); - rewardId = reward.ID; - if (reward != null) - { - rewardId = reward.ID; - } + rewardId = reward?.ID ?? -1; } }