diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-08-20 16:03:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 16:03:47 -0400 |
commit | 6c34effda93c67a37895e79b684b31b3cb9a2a88 (patch) | |
tree | b7373ea86cb3249a39b92b2aa417023b330ce92c /src/pokemon.c | |
parent | fadb72696fafe58d210e6d5af480067f08e9fd04 (diff) | |
parent | fa29ff98a342f4f434b96d4e04f47e25ca865512 (diff) |
Merge pull request #1138 from GriffinRichards/doc-contest
Document contest
Diffstat (limited to 'src/pokemon.c')
-rw-r--r-- | src/pokemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pokemon.c b/src/pokemon.c index 44b5e55bb..faf00a7bf 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -4499,8 +4499,8 @@ void CreateSecretBaseEnemyParty(struct SecretBase *secretBaseRecord) for (j = 0; j < MAX_MON_MOVES; j++) { - SetMonData(&gEnemyParty[i], MON_DATA_MOVE1 + j, &gBattleResources->secretBase->party.moves[i * 4 + j]); - SetMonData(&gEnemyParty[i], MON_DATA_PP1 + j, &gBattleMoves[gBattleResources->secretBase->party.moves[i * 4 + j]].pp); + SetMonData(&gEnemyParty[i], MON_DATA_MOVE1 + j, &gBattleResources->secretBase->party.moves[i * MAX_MON_MOVES + j]); + SetMonData(&gEnemyParty[i], MON_DATA_PP1 + j, &gBattleMoves[gBattleResources->secretBase->party.moves[i * MAX_MON_MOVES + j]].pp); } } } |