Added nullguard when adding hideout improvements to profile

This commit is contained in:
Dev 2024-09-12 20:34:10 +01:00
parent 0222ab24d7
commit 3cd4532942

View File

@ -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;
}