Skip to content

Commit

Permalink
restored event/var index caching, tentative #120 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Monitor221hz committed Feb 22, 2024
1 parent 42825c7 commit b42c548
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b42c548

Please sign in to comment.