summaryrefslogtreecommitdiff
path: root/soh/src/code/z_parameter.c
diff options
context:
space:
mode:
authorPepper0ni <93387759+Pepper0ni@users.noreply.github.com>2024-07-18 22:42:48 +0100
committerGitHub <noreply@github.com>2024-07-18 14:42:48 -0700
commit4df4e61eb30043646d688ad7a68a7f3b08f151b9 (patch)
treeed06fc236d9bddb534bb49f386ab3aa1df2f5e6a /soh/src/code/z_parameter.c
parent8b6c183776bddb511e7cec7a07d0018507ff101d (diff)
Fix return of Item_Give for stricter compilers (#4244)
* fix return of Item_Give for stricter compilers * change to just item
Diffstat (limited to 'soh/src/code/z_parameter.c')
-rw-r--r--soh/src/code/z_parameter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/soh/src/code/z_parameter.c b/soh/src/code/z_parameter.c
index a03a74c69..31b2a6d0b 100644
--- a/soh/src/code/z_parameter.c
+++ b/soh/src/code/z_parameter.c
@@ -1933,7 +1933,7 @@ u8 Item_Give(PlayState* play, u8 item) {
Randomizer_GetSettingValue(RSK_SHUFFLE_DEKU_STICK_BAG) &&
CUR_UPG_VALUE(UPG_STICKS) == 0
) {
- return;
+ return item;
}
//prevents getting nuts without the bag in case something got missed
@@ -1943,7 +1943,7 @@ u8 Item_Give(PlayState* play, u8 item) {
Randomizer_GetSettingValue(RSK_SHUFFLE_DEKU_NUT_BAG) &&
CUR_UPG_VALUE(UPG_NUTS) == 0
) {
- return;
+ return item;
}
lusprintf(__FILE__, __LINE__, 2, "Item Give - item: %#x", item);