From ea44465cb47f0f877b42a077a3ee09265d468b82 Mon Sep 17 00:00:00 2001 From: Chris Adamson Date: Mon, 7 Apr 2025 12:06:33 -0500 Subject: [PATCH] object to object casting error --- Libraries/SPTarkov.Server.Core/Helpers/QuestHelper.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Libraries/SPTarkov.Server.Core/Helpers/QuestHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/QuestHelper.cs index d6782866..97e330ae 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/QuestHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/QuestHelper.cs @@ -1,3 +1,5 @@ +using System.Text.Json; +using System.Text.Json.Serialization; using SPTarkov.Server.Core.Models.Eft.Common; using SPTarkov.Server.Core.Models.Eft.Common.Tables; using SPTarkov.Server.Core.Models.Eft.ItemEvent; @@ -660,7 +662,7 @@ public class QuestHelper( Template = item.Template, ParentId = item.ParentId, SlotId = item.SlotId, - Location = (ItemLocation) item.Location, + Location = item.Location, Upd = new Upd { StackObjectsCount = item.Upd.StackObjectsCount