diff --git a/PandoraPlus/MVVM/Model/Patch/Patchers/Skyrim/Hkx/PackFileValidator.cs b/PandoraPlus/MVVM/Model/Patch/Patchers/Skyrim/Hkx/PackFileValidator.cs index 25c3926..19f4be2 100644 --- a/PandoraPlus/MVVM/Model/Patch/Patchers/Skyrim/Hkx/PackFileValidator.cs +++ b/PandoraPlus/MVVM/Model/Patch/Patchers/Skyrim/Hkx/PackFileValidator.cs @@ -102,11 +102,11 @@ public bool ValidateEventsAndVariables(PackFileGraph graph) } eventLowerBound -= 2; variableLowerBound -= 2; - for (int i = 0; i < eventLowerBound; i++) + for (int i = 0; i < eventNameElements.Count; i++) { eventIndices.Add(eventNameElements[i].Value, eventNameElements.Count - 1 - i); } - for (int i = 0; i < variableLowerBound; i++) + for (int i = 0; i < variableNameElements.Count; i++) { variableIndices.Add(variableNameElements[i].Value, variableNameElements.Count - 1 - i); }