From 15082afde27f261ad5613fc425a10b608eb9cdb2 Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 16 Nov 2023 14:30:08 +0000 Subject: [PATCH] Fix `reorderHideoutAreasWithResouceInputs()` off by one error because it was checking the index instead of finding the area type --- project/src/services/ProfileFixerService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/project/src/services/ProfileFixerService.ts b/project/src/services/ProfileFixerService.ts index 0a819231..403505e6 100644 --- a/project/src/services/ProfileFixerService.ts +++ b/project/src/services/ProfileFixerService.ts @@ -575,8 +575,7 @@ export class ProfileFixerService for (const areaId of areasToCheck) { - const area = pmcProfile.Hideout.Areas[areaId]; - + const area = pmcProfile.Hideout.Areas.find(x => x.type === areaId); if (!area) { this.logger.debug(`unable to sort ${areaId} slots, no area found`);