Skip to content

Fix Adult Fishing as Child Softlock#5377

Merged
leggettc18 merged 3 commits intoHarbourMasters:develop-blairfrom
A-Green-Spoon:fix-fishing-glitch
Apr 10, 2025
Merged

Fix Adult Fishing as Child Softlock#5377
leggettc18 merged 3 commits intoHarbourMasters:develop-blairfrom
A-Green-Spoon:fix-fishing-glitch

Conversation

@A-Green-Spoon
Copy link
Contributor

@A-Green-Spoon A-Green-Spoon commented Apr 10, 2025

Changing the hook code to correctly use Fishing* instead of VBFishingData* resulted in passing a pointer to the pointer (&this - Fishing**), causing a softlock when the switch variable was only updated on this copy instead of live. Passing the pointer itself resolves this.

Build Artifacts

@leggettc18 leggettc18 added this to the 9.0.2 milestone Apr 10, 2025
Copy link
Contributor

@leggettc18 leggettc18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, shame we missed it the first time.

@leggettc18
Copy link
Contributor

Did hands-on testing, confirmed fixed.

@Archez
Copy link
Contributor

Archez commented Apr 10, 2025

Can you also update the comment in soh/soh/Enhancements/game-interactor/vanilla-behavior/GIVanillaBehavior.h to reflect the change. You can just drop the this part entirely and just leave *Fishing

@leggettc18 leggettc18 merged commit a93917b into HarbourMasters:develop-blair Apr 10, 2025
6 checks passed
@A-Green-Spoon A-Green-Spoon deleted the fix-fishing-glitch branch May 8, 2025 16:24
krazyjakee pushed a commit to krazyjakee/OOT that referenced this pull request Sep 6, 2025
* pass a pointer not a pointer to a pointer

* update GIVanillaBehavior comment

* also drop this
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