From 235cef6abffea3fff1ec28fa4a7856464ec886bd Mon Sep 17 00:00:00 2001 From: PurpleHato Date: Tue, 19 Jul 2022 04:47:37 +0200 Subject: [PATCH] FIX: RetrictItem SunSong issue (#839) Thanks @vaguerant --- soh/src/code/game.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soh/src/code/game.c b/soh/src/code/game.c index 9e0cfb50b51..9089606e6e4 100644 --- a/soh/src/code/game.c +++ b/soh/src/code/game.c @@ -409,7 +409,9 @@ void GameState_Update(GameState* gameState) { // Unrestricted Items if (CVar_GetS32("gNoRestrictItems", 0) != 0) { if (gGlobalCtx) { + u8 sunsBackup = gGlobalCtx->interfaceCtx.restrictions.sunsSong; memset(&gGlobalCtx->interfaceCtx.restrictions, 0, sizeof(gGlobalCtx->interfaceCtx.restrictions)); + gGlobalCtx->interfaceCtx.restrictions.sunsSong = sunsBackup; } }