0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-12 15:50:42 -05:00

only purge inactive repeatables When repeatableToChangeClone exists

This commit is contained in:
Chomp 2024-12-09 13:41:06 +00:00
parent 8f416c5dee
commit aa928ac43d

View File

@ -571,10 +571,6 @@ export class RepeatableQuestController {
// Clone data before we send it to client
const repeatableToChangeClone = this.cloner.clone(repeatablesInProfile);
// Purge inactive repeatables
repeatableToChangeClone.inactiveQuests = [];
if (!repeatableToChangeClone) {
// Unable to find quest being replaced
const message = this.localisationService.getText("quest-unable_to_find_repeatable_to_replace");
@ -583,6 +579,9 @@ export class RepeatableQuestController {
return this.httpResponse.appendErrorToOutput(output, message);
}
// Purge inactive repeatables
repeatableToChangeClone.inactiveQuests = [];
// Nullguard
output.profileChanges[sessionID].repeatableQuests ||= [];