Skip to content

Commit aa928ac

Browse files
author
Chomp
committed
only purge inactive repeatables When repeatableToChangeClone exists
1 parent 8f416c5 commit aa928ac

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

project/src/controllers/RepeatableQuestController.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -571,10 +571,6 @@ export class RepeatableQuestController {
571571

572572
// Clone data before we send it to client
573573
const repeatableToChangeClone = this.cloner.clone(repeatablesInProfile);
574-
575-
// Purge inactive repeatables
576-
repeatableToChangeClone.inactiveQuests = [];
577-
578574
if (!repeatableToChangeClone) {
579575
// Unable to find quest being replaced
580576
const message = this.localisationService.getText("quest-unable_to_find_repeatable_to_replace");
@@ -583,6 +579,9 @@ export class RepeatableQuestController {
583579
return this.httpResponse.appendErrorToOutput(output, message);
584580
}
585581

582+
// Purge inactive repeatables
583+
repeatableToChangeClone.inactiveQuests = [];
584+
586585
// Nullguard
587586
output.profileChanges[sessionID].repeatableQuests ||= [];
588587

0 commit comments

Comments
 (0)