Skip to content

Commit a0713af

Browse files
committed
fix obvious bug
1 parent 759ec24 commit a0713af

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

FlashpointSecurePlayer/RegistryStates.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,9 +1091,8 @@ public override void Activate(string templateName) {
10911091
} catch {
10921092
// remove keys we didn't touch
10931093
try {
1094-
while (registryStateIndex < modificationsElement.RegistryStates.Count) {
1095-
modificationsElement.RegistryStates.RemoveAt(registryStateIndex);
1096-
registryStateIndex++;
1094+
while (registryStateIndex < activeModificationsElement.RegistryStates.Count) {
1095+
activeModificationsElement.RegistryStates.RemoveAt(registryStateIndex);
10971096
}
10981097

10991098
SetFlashpointSecurePlayerSection(TemplateName);

0 commit comments

Comments
 (0)