SC2: Fix custom mission order if used in weights.yaml (#5604)

This commit is contained in:
Ziktofel
2025-11-15 02:18:58 +01:00
committed by GitHub
parent 75eb2660ce
commit 557a284afd

View File

@@ -176,8 +176,7 @@ class CustomMissionOrder(OptionDict):
# This function constructs self.value by parts,
# so the parent constructor isn't called
self.value: Dict[str, Dict[str, Any]] = {}
if yaml_value == self.default: # If this option is default, it shouldn't mess with its own values
yaml_value = copy.deepcopy(self.default)
yaml_value = copy.deepcopy(yaml_value) # Ensure that all the mutations are local to the world
for campaign in yaml_value:
self.value[campaign] = {}