Skip to content

Commit

Permalink
Removed unused access to struct MegaEvolutionData in GetBattlerFriend…
Browse files Browse the repository at this point in the history
…shipScore
  • Loading branch information
LOuroboros committed Oct 7, 2022
1 parent 50ca188 commit 589c969
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/battle_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -2107,7 +2107,6 @@ void TryToRevertMimicry(void)

u32 GetBattlerFriendshipScore(u8 battlerId)
{
struct MegaEvolutionData *mega = &(((struct ChooseMoveStruct *)(&gBattleResources->bufferA[battlerId][4]))->mega);
u8 side = GetBattlerSide(battlerId);
struct Pokemon *party = (side == B_SIDE_PLAYER) ? gPlayerParty : gEnemyParty;
u16 species = GetMonData(&party[gBattlerPartyIndexes[battlerId]], MON_DATA_SPECIES);
Expand Down

0 comments on commit 589c969

Please sign in to comment.