summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorvaguerant <vaguerant@users.noreply.github.com>2022-05-22 03:15:41 +1000
committerGitHub <noreply@github.com>2022-05-21 13:15:41 -0400
commita3cf8522676ec7855da4869be775e81014eb70ec (patch)
tree12e7edb62d4ab3cfb271726e5c0bb2dbb4b922b4 /soh/src/code
parent226dd3a82825c8cc913acb736509ab9fbde86448 (diff)
Fix vanilla Deku Nut upgrade bug (#333)
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_parameter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/src/code/z_parameter.c b/soh/src/code/z_parameter.c
index 8cfcccbf5..127fb0cbb 100644
--- a/soh/src/code/z_parameter.c
+++ b/soh/src/code/z_parameter.c
@@ -1803,7 +1803,7 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
}
}
} else if ((item >= ITEM_WEIRD_EGG) && (item <= ITEM_CLAIM_CHECK)) {
- if (item == ITEM_SAW) {
+ if ((item == ITEM_SAW) && CVar_GetS32("gDekuNutUpgradeFix", 0) == 0) {
gSaveContext.itemGetInf[1] |= 0x8000;
}