Skip to content

Conversation

@dawnreprime
Copy link

Address primary issues in #1941:

  • Fix undefined behavior during achievement progress algorithm
  • Avoid iterator invalidation if unordered_map inserts lead to rehash

Other changes:

  • Leverage mission list iteration for functions iterating all missions
  • Fix const-correctness in various places
  • Add missing delete in MissionComponent

Address primary issues in DarkflameUniverse#1941:
- Fix undefined behavior during achievement progress algorithm
- Avoid iterator invalidation if unordered_map inserts lead to rehash

Other changes:
- Leverage mission list iteration for functions iterating all missions
- Fix const-correctness in various places
- Add missing delete in MissionComponent
@dawnreprime
Copy link
Author

Extra Notes:

The removal case is not triggered by the code section.

Testing:

Newly added meta achievements no longer gain incorrectly tracked progress on accepting, including edge cases before the next rank with multiple triggered achievements cascading.

@dawnreprime dawnreprime marked this pull request as ready for review November 24, 2025 22:01
@EmosewaMC
Copy link
Collaborator

I have already resolved this issue on a local branch in a more efficient manner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants