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:
parent
8f416c5dee
commit
aa928ac43d
@ -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 ||= [];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user