summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorxxAtrain223 <xxAtrain223@users.noreply.github.com>2026-01-25 21:23:47 -0600
committerGitHub <noreply@github.com>2026-01-26 03:23:47 +0000
commitf5264be1924a51b02f66ef3d7fd3b471b3aeb1bb (patch)
tree03d22016c182b5d212b46c07fc62b3fe3a65db1f /soh/src/code
parent983d04d36240bb16db40c06ed3560bc4d622557c (diff)
Recalculate Available Checks from Current Region (#6165)
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_play.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/soh/src/code/z_play.c b/soh/src/code/z_play.c
index aa51915c1..55c1864fb 100644
--- a/soh/src/code/z_play.c
+++ b/soh/src/code/z_play.c
@@ -690,6 +690,9 @@ void Play_Init(GameState* thisx) {
GET_PLAYER(play)->actor.world.pos.y + Player_GetHeight(GET_PLAYER(play)) + 5.0f,
GET_PLAYER(play)->actor.world.pos.z, 0, 0, 0, 1, true);
}
+
+ // nextEntranceIndex was not initialized, so the previous value was carried over during soft resets.
+ gPlayState->nextEntranceIndex = gSaveContext.entranceIndex;
}
void Play_Update(PlayState* play) {