Fixed bug not beeing able to select last species, thanks to Lunos for finding it

This commit is contained in:
TheXaman 2021-05-24 10:19:22 +02:00
parent 822a6c4260
commit c92c3456b1

View File

@ -1725,8 +1725,8 @@ static void DebugAction_Give_Pokemon_SelectId(u8 taskId)
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
if(gTasks[taskId].data[3] > SPECIES_CELEBI && gTasks[taskId].data[3] < SPECIES_TREECKO)
gTasks[taskId].data[3] = SPECIES_TREECKO;
if(gTasks[taskId].data[3] >= NUM_SPECIES - 1)
gTasks[taskId].data[3] = NUM_SPECIES - 2;
if(gTasks[taskId].data[3] >= NUM_SPECIES)
gTasks[taskId].data[3] = NUM_SPECIES - 1;
}
if(gMain.newKeys & DPAD_DOWN)
{