Fixed bug that prevents field moves from being displayed when adding more field moves (#3933)

When adding a new field move, no field moves will be displayed in the party menu screen at all. This fixes this issue.
This commit is contained in:
johannakullmann 2024-01-05 17:56:38 +01:00 committed by GitHub
parent f9c21afb75
commit 338740e256
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2787,7 +2787,7 @@ static void SetPartyMonFieldSelectionActions(struct Pokemon *mons, u8 slotId)
// Add field moves to action list
for (i = 0; i < MAX_MON_MOVES; i++)
{
for (j = 0; sFieldMoves[j] != FIELD_MOVES_COUNT; j++)
for (j = 0; j != FIELD_MOVES_COUNT; j++)
{
if (GetMonData(&mons[slotId], i + MON_DATA_MOVE1) == sFieldMoves[j])
{