From 3cd453294245e3474e8dfddb8a69eeba0db88118 Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 12 Sep 2024 20:34:10 +0100 Subject: [PATCH] Added nullguard when adding hideout improvements to profile --- project/src/controllers/HideoutController.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/project/src/controllers/HideoutController.ts b/project/src/controllers/HideoutController.ts index a7a227a0..a7cb90cd 100644 --- a/project/src/controllers/HideoutController.ts +++ b/project/src/controllers/HideoutController.ts @@ -1268,6 +1268,8 @@ export class HideoutController { improveCompleteTimestamp: timestamp + improvement.improvementTime, }; output.profileChanges[sessionId].improvements[improvement.id] = improvementDetails; + + pmcData.Hideout.Improvements ||= {}; pmcData.Hideout.Improvements[improvement.id] = improvementDetails; }