Added nullguard when adding hideout improvements to profile
This commit is contained in:
parent
0222ab24d7
commit
3cd4532942
@ -1268,6 +1268,8 @@ export class HideoutController {
|
|||||||
improveCompleteTimestamp: timestamp + improvement.improvementTime,
|
improveCompleteTimestamp: timestamp + improvement.improvementTime,
|
||||||
};
|
};
|
||||||
output.profileChanges[sessionId].improvements[improvement.id] = improvementDetails;
|
output.profileChanges[sessionId].improvements[improvement.id] = improvementDetails;
|
||||||
|
|
||||||
|
pmcData.Hideout.Improvements ||= {};
|
||||||
pmcData.Hideout.Improvements[improvement.id] = improvementDetails;
|
pmcData.Hideout.Improvements[improvement.id] = improvementDetails;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user