Fix entrance overrides being different between loading spoiler vs starting seed (#7085)

This commit is contained in:
Philip Dubé
2026-08-16 18:46:15 +00:00
committed by GitHub
parent 17a7fde003
commit bdccc868b7
+5 -3
View File
@@ -1647,10 +1647,12 @@ void EntranceShuffler::CreateEntranceOverrides() {
int16_t destinationIndex = -1;
int16_t replacementDestinationIndex = -1;
// Only set destination indices for two way entrances and when decouple entrances is off
if (entrance->GetReverse() != nullptr && !ctx->GetOption(RSK_DECOUPLED_ENTRANCES)) {
replacementDestinationIndex = entrance->GetReplacement()->GetReverse()->GetIndex();
// Track the reverse destination, useful for savewarp handling
if (entrance->GetReverse() != nullptr) {
destinationIndex = entrance->GetReverse()->GetIndex();
if (!ctx->GetOption(RSK_DECOUPLED_ENTRANCES)) {
replacementDestinationIndex = entrance->GetReplacement()->GetReverse()->GetIndex();
}
}
entranceOverrides[i] = {