From e35d879b4b1b7cd63e431a93ae678641a683b98e Mon Sep 17 00:00:00 2001 From: Christopher Leggett Date: Mon, 28 Apr 2025 21:02:22 -0400 Subject: [PATCH] Prevent BeanPlanted using gSaveContext for seed gen --- soh/soh/Enhancements/randomizer/location_access.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/soh/Enhancements/randomizer/location_access.cpp b/soh/soh/Enhancements/randomizer/location_access.cpp index 6cf2aa2ab..2eff9d6b1 100644 --- a/soh/soh/Enhancements/randomizer/location_access.cpp +++ b/soh/soh/Enhancements/randomizer/location_access.cpp @@ -275,7 +275,7 @@ bool BeanPlanted(const RandomizerRegion region) { if (gPlayState != nullptr && gPlayState->sceneNum == sceneID) { swch = gPlayState->actorCtx.flags.swch; } else if (sceneID != SCENE_ID_MAX) { - swch = gSaveContext.sceneFlags[sceneID].swch; + swch = Rando::Context::GetInstance()->GetLogic()->GetSaveContext()->sceneFlags[sceneID].swch; } else { swch = 0; }