Prevent BeanPlanted using gSaveContext for seed gen

This commit is contained in:
Christopher Leggett 2025-04-28 21:02:22 -04:00
commit e35d879b4b
No known key found for this signature in database
GPG key ID: F2121C0AF9938ABF

View file

@ -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;
}