Skip to content

Commit

Permalink
FIX: RetrictItem SunSong issue (HarbourMasters#839)
Browse files Browse the repository at this point in the history
Thanks @vaguerant
  • Loading branch information
PurpleHato authored Jul 19, 2022
1 parent e871b53 commit 235cef6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions soh/src/code/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 235cef6

Please sign in to comment.