diff options
| author | briaguya <70942617+briaguya-ai@users.noreply.github.com> | 2022-12-06 00:34:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-06 00:34:30 -0500 |
| commit | 321e563c8235bf4fc4c390ca5c0059239ab8406b (patch) | |
| tree | df6812bee9c5ea46407586f3107c19771a06d686 /soh/src/code/z_parameter.c | |
| parent | acd07f2a0766a71956b876f75ab90fb9f6c4f6fe (diff) | |
use enum for starting age (#2085)
Co-authored-by: briaguya <briaguya@alice>
Diffstat (limited to 'soh/src/code/z_parameter.c')
| -rw-r--r-- | soh/src/code/z_parameter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/src/code/z_parameter.c b/soh/src/code/z_parameter.c index 1bd7c239c..1d4e59f07 100644 --- a/soh/src/code/z_parameter.c +++ b/soh/src/code/z_parameter.c @@ -1508,7 +1508,7 @@ void Inventory_SwapAgeEquipment(void) { gSaveContext.equips.equipment = gSaveContext.childEquips.equipment; gSaveContext.equips.equipment &= 0xFFF0; gSaveContext.equips.equipment |= 0x0001; - } else if (gSaveContext.n64ddFlag && Randomizer_GetSettingValue(RSK_STARTING_AGE)) { + } else if (gSaveContext.n64ddFlag && Randomizer_GetSettingValue(RSK_STARTING_AGE) == RO_AGE_ADULT) { /*If in rando and starting age is adult, childEquips is not initialized and buttonItems[0] will be ITEM_NONE. When changing age from adult -> child, reset equips to "default" (only kokiri tunic/boots equipped, no sword, no C-button items, no D-Pad items). |
