Skip to content

Fix void out with overworld spawn out of a grotto - #853

Merged
HylianFreddy merged 1 commit into
gamestabled:mainfrom
HylianFreddy:fix-grotto-spawn
Sep 10, 2026
Merged

HylianFreddy merged 1 commit into
gamestabled:mainfrom
HylianFreddy:fix-grotto-spawn

Conversation

@HylianFreddy

Copy link
Copy Markdown
Collaborator

This fixes the latest crash reported on Discord.

When coming out of a grotto, the game does not set the void out respawn point. Normally the Randomizer already handles it, so that when the grotto entrance is randomized, the respawn point is updated anyway.
But when loading a save file, the game sets the entrance index stored in the respawn data to -1, after the Randomizer code writes it: https://github.com/zeldaret/oot/blob/cbe814b25455f14a343a7457c4b1c92af40ede6a/src/overlays/gamestates/ovl_file_choose/z_file_choose.c#L1888
So if you load a file, spawn out of a grotto and then void out, the game will either go back to the Title Screen if the respawn point's room index is 0, or crash otherwise.

The easy fix implemented here is to reset the respawn point's entrance index after the file load completes.

@HylianFreddy
HylianFreddy merged commit abbf085 into gamestabled:main Sep 10, 2026
2 checks passed
@HylianFreddy
HylianFreddy deleted the fix-grotto-spawn branch September 10, 2026 19:15
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.

2 participants