Skip to content

Conversation

@submitteddenied
Copy link
Contributor

Fixes a possible crash (#575) when a node allocMode is set to nil, which breaks generating the modlist in CalcSetup.lua

Fixes #575 .

Description of the problem being solved:

When multiple choice passives are deallocated, allocMode was being set to nil, which breaks how modlists are generated for weapon sets in CalcSetup.lua:310.

Steps taken to verify a working solution:

  • Select Ranger, Deadeye ascendency in passive tree configuration. Allocate Projectile Proximity Specialization and one of Far Shot or Point Blank. Hover over the other.
  • Use devAltMode to verify that the nodes have allocMode=0
  • Code in DeallocSingleNode performs the same changes to the node data as the deleted lines in this change (and would also handle a multiple choice mastery, if that ever happened)

Before screenshot:

Screenshot 2025-01-24 142515

After screenshot:

Screenshot 2025-01-24 144621
Screenshot 2025-01-24 144608
Screenshot 2025-01-24 143455
Screenshot 2025-01-24 143445

…tions

Fixes a possible crash (PathOfBuildingCommunity#575) when a node `allocMode` is set to `nil`, which
breaks generating the modlist in `CalcSetup.lua`
@LocalIdentity LocalIdentity added the crash Causes PoB to crash and is High Priority label Jan 27, 2025
@LocalIdentity LocalIdentity changed the title Fix crash when switching between "multiple choice" passives Fix Crash when switching between multiple choice Ascendancies Jan 27, 2025
@LocalIdentity LocalIdentity merged commit 00391a8 into PathOfBuildingCommunity:dev Jan 27, 2025
2 checks passed
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.

Deadeye Point blank and Far shot error throw

2 participants