use enum for starting age (#2085)

Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
briaguya 2022-12-06 00:34:30 -05:00 committed by GitHub
parent acd07f2a07
commit 321e563c82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -383,12 +383,12 @@ void Sram_InitSave(FileChooseContext* fileChooseCtx) {
int startingAge = Randomizer_GetSettingValue(RSK_STARTING_AGE);
switch (startingAge) {
case 1: //Adult
case RO_AGE_ADULT: //Adult
gSaveContext.linkAge = 0;
gSaveContext.entranceIndex = 0x5F4;
gSaveContext.savedSceneNum = SCENE_SPOT20; //Set scene num manually to ToT
break;
case 0: //Child
case RO_AGE_CHILD: //Child
gSaveContext.linkAge = 1;
break;
default: