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 error on disabling node power mid-generation #6182

Merged

Conversation

Lilylicious
Copy link
Contributor

Description of the problem being solved:

When disabling show node power partway through a calculations, nodes would lose their power property. This caused a crash unless the disabling happened at precisely the right point to not run into the code I changed. Simply checking that node power exists before using the singleStat of it solved the issue.

Steps taken to verify a working solution:

  • Open build
  • Enable show node power
  • Switch to full DPS
  • Disable show node power

Without this change an error should appear. With it, no error should occur.

Link to a build that showcases this PR:

https://pobb.in/2xvFigGrZNrL

@LocalIdentity LocalIdentity added the crash Causes PoB to crash and is High Priority label May 1, 2023
@LocalIdentity LocalIdentity merged commit 4fa9a45 into PathOfBuildingCommunity:dev May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Causes PoB to crash and is High Priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants