Fix return of Item_Give for stricter compilers (#4244)

* fix return of Item_Give for stricter compilers

* change to just item
This commit is contained in:
Pepper0ni 2024-07-18 22:42:48 +01:00 committed by GitHub
parent 8b6c183776
commit 4df4e61eb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1933,7 +1933,7 @@ u8 Item_Give(PlayState* play, u8 item) {
Randomizer_GetSettingValue(RSK_SHUFFLE_DEKU_STICK_BAG) && Randomizer_GetSettingValue(RSK_SHUFFLE_DEKU_STICK_BAG) &&
CUR_UPG_VALUE(UPG_STICKS) == 0 CUR_UPG_VALUE(UPG_STICKS) == 0
) { ) {
return; return item;
} }
//prevents getting nuts without the bag in case something got missed //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) && Randomizer_GetSettingValue(RSK_SHUFFLE_DEKU_NUT_BAG) &&
CUR_UPG_VALUE(UPG_NUTS) == 0 CUR_UPG_VALUE(UPG_NUTS) == 0
) { ) {
return; return item;
} }
lusprintf(__FILE__, __LINE__, 2, "Item Give - item: %#x", item); lusprintf(__FILE__, __LINE__, 2, "Item Give - item: %#x", item);