mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
Fixed form wrapping to the left.
This commit is contained in:
parent
fe95e88938
commit
e95020c59a
@ -1325,7 +1325,15 @@ static void UpdateSubmenuOneOptionValue(u8 taskId, bool8 increment)
|
||||
else
|
||||
{
|
||||
if (gFormSpeciesIdTables[data->currentmonId][formId] == gFormSpeciesIdTables[data->currentmonId][0])
|
||||
modArrows->currValue = gFormSpeciesIdTables[data->currentmonId][0];
|
||||
{
|
||||
u8 lastForm;
|
||||
for (lastForm = 0; gFormSpeciesIdTables[data->currentmonId][lastForm] != FORM_SPECIES_END; lastForm++)
|
||||
{
|
||||
if (gFormSpeciesIdTables[data->currentmonId][lastForm + 1] == FORM_SPECIES_END)
|
||||
break;
|
||||
}
|
||||
modArrows->currValue = gFormSpeciesIdTables[data->currentmonId][lastForm];
|
||||
}
|
||||
else
|
||||
modArrows->currValue = GetFormSpeciesId(data->currentmonId, formId - 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user