Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix internal state of HQs #4169

Merged
merged 2 commits into from
Aug 23, 2022
Merged

Fix internal state of HQs #4169

merged 2 commits into from
Aug 23, 2022

Conversation

Garanas
Copy link
Member

@Garanas Garanas commented Aug 23, 2022

As mentioned on Discord and on the forums there's an issue with the internal state of HQs. When refactoring it to fix an issue we didn't properly check the edge cases. In particular:

  • if an hq would be cancelled during construction then the internal state becomes corrupt
  • if an hq tech 3 is finished, the previous tech is removed twice: corrupting the internal state again

@Garanas Garanas added the area: sim Area that is affected by the Simulation of the Game label Aug 23, 2022
@Garanas Garanas merged commit 0e1620a into deploy/fafdevelop Aug 23, 2022
@Garanas Garanas mentioned this pull request Sep 13, 2022
@Garanas Garanas deleted the fix/hqs-4 branch October 1, 2022 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: sim Area that is affected by the Simulation of the Game
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant