Skip to content

Conversation

@Pepe20129
Copy link
Contributor

The ToT medallions enhancement crashed due to gPlayState being null when items are given upon creation of a randomizer save.

@inspectredc
Copy link
Member

I believe we shifted to using
if (!GameInteractor::IsSaveLoaded()) return;
Although if there's a reason that this shouldn't be used then this is good!

@Pepe20129
Copy link
Contributor Author

Some hooks still use if (!gPlayState) return; and using if (!GameInteractor::IsSaveLoaded()) return; will prevent stuff from working in the debug save file (for example the hold L to levitate cheat doesn't work in the debug save file anymore). I decided to use gPlayState to avoid problems with the debug save file.

Copy link
Contributor

@Archez Archez left a comment

Choose a reason for hiding this comment

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

I'm fine with this. Rather not use ::IsSaveLoaded for something like this.

@Archez
Copy link
Contributor

Archez commented Dec 29, 2023

Bypassing merge timeline to resolve develop crashes

@Archez Archez merged commit 807b00a into HarbourMasters:develop Dec 29, 2023
@Pepe20129 Pepe20129 deleted the fix_tot_medallions branch December 29, 2023 22:58
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