summaryrefslogtreecommitdiff
path: root/src/battle_tv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/battle_tv.c')
-rw-r--r--src/battle_tv.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/battle_tv.c b/src/battle_tv.c
index dea711609..7e311fdab 100644
--- a/src/battle_tv.c
+++ b/src/battle_tv.c
@@ -714,15 +714,16 @@ void BattleTv_SetDataBasedOnAnimation(u8 animationId)
void TryPutLinkBattleTvShowOnAir(void)
{
- u16 playerBestSpecies = 0, opponentBestSpecies = 0, moveId = 0;
- s16 sum = 0, playerBestSum = 0, opponentBestSum = SHRT_MAX;
+ u16 playerBestSpecies = 0, opponentBestSpecies = 0;
+ s16 playerBestSum = 0, opponentBestSum = SHRT_MAX;
u8 playerBestMonId = 0, opponentBestMonId = 0;
struct BattleTvMovePoints *movePoints = NULL;
u8 countPlayer = 0, countOpponent = 0;
- u16 species;
+ s16 sum = 0;
+ u16 species = 0;
+ u16 moveId = 0;
s32 i, j;
-
- int zero = 0, one = 1; // stupid variables needed to match. Feel free to get rid of them.
+ int zero = 0, one = 1; //needed for matching
if (gBattleStruct->anyMonHasTransformed)
return;