mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-16 08:32:10 +01:00
Fixed bug not beeing able to select last species, thanks to Lunos for finding it
This commit is contained in:
parent
822a6c4260
commit
c92c3456b1
@ -1725,8 +1725,8 @@ static void DebugAction_Give_Pokemon_SelectId(u8 taskId)
|
|||||||
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
gTasks[taskId].data[3] += sPowersOfTen[gTasks[taskId].data[4]];
|
||||||
if(gTasks[taskId].data[3] > SPECIES_CELEBI && gTasks[taskId].data[3] < SPECIES_TREECKO)
|
if(gTasks[taskId].data[3] > SPECIES_CELEBI && gTasks[taskId].data[3] < SPECIES_TREECKO)
|
||||||
gTasks[taskId].data[3] = SPECIES_TREECKO;
|
gTasks[taskId].data[3] = SPECIES_TREECKO;
|
||||||
if(gTasks[taskId].data[3] >= NUM_SPECIES - 1)
|
if(gTasks[taskId].data[3] >= NUM_SPECIES)
|
||||||
gTasks[taskId].data[3] = NUM_SPECIES - 2;
|
gTasks[taskId].data[3] = NUM_SPECIES - 1;
|
||||||
}
|
}
|
||||||
if(gMain.newKeys & DPAD_DOWN)
|
if(gMain.newKeys & DPAD_DOWN)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user