Fixed potential mismatch between players and battlers in tests (#7101)
This commit is contained in:
parent
393bed069a
commit
6cb5016113
@ -284,16 +284,17 @@ static void BattleTest_Run(void *data)
|
||||
break;
|
||||
}
|
||||
|
||||
for (i = 0; i < STATE->battlersCount; i++)
|
||||
for (i = 0; i < MAX_LINK_PLAYERS; i++)
|
||||
{
|
||||
DATA.recordedBattle.playersName[i][0] = CHAR_1 + i;
|
||||
DATA.recordedBattle.playersName[i][1] = EOS;
|
||||
DATA.recordedBattle.playersLanguage[i] = GAME_LANGUAGE;
|
||||
DATA.recordedBattle.playersBattlers[i] = i;
|
||||
|
||||
DATA.currentMonIndexes[i] = (i & BIT_FLANK) == B_FLANK_LEFT ? 0 : 1;
|
||||
}
|
||||
|
||||
for (i = 0; i < STATE->battlersCount; i++)
|
||||
DATA.currentMonIndexes[i] = i / 2;
|
||||
|
||||
STATE->runRandomly = TRUE;
|
||||
STATE->runGiven = TRUE;
|
||||
STATE->runWhen = TRUE;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user