mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-03-21 18:04:50 -05:00
Fixed HasAtLeastOneBerry
This commit is contained in:
parent
b3fc5f1d27
commit
d7da8ce721
|
|
@ -225,7 +225,7 @@ bool32 CheckBagHasItem(enum Item itemId, u16 count)
|
|||
|
||||
bool32 HasAtLeastOneBerry(void)
|
||||
{
|
||||
for (enum BerryId berryId = 1; berryId < NUM_BERRIES; berryId++)
|
||||
for (enum BerryId berryId = 1; berryId <= NUM_BERRIES; berryId++)
|
||||
{
|
||||
if (CheckBagHasItem(BerryTypeToItemId(berryId), 1) == TRUE)
|
||||
return (gSpecialVar_Result = TRUE);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user