Merge pull request #2127 from AsparagusEduardo/_pret/maxLinkPlayers

Fix other missing instances of MAX_LINK_PLAYERS
This commit is contained in:
GriffinR
2025-06-25 22:05:13 -04:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -1024,7 +1024,7 @@ void InitLinkBattleVsScreen(u8 taskId)
case 0:
if (gBattleTypeFlags & BATTLE_TYPE_MULTI)
{
for (i = 0; i < MAX_BATTLERS_COUNT; i++)
for (i = 0; i < MAX_LINK_PLAYERS; i++)
{
name = gLinkPlayers[i].name;
linkPlayer = &gLinkPlayers[i];

View File

@@ -260,7 +260,7 @@ static void InitSinglePlayerBtlControllers(void)
{
u8 multiplayerId;
for (multiplayerId = gRecordedBattleMultiplayerId, i = 0; i < MAX_BATTLERS_COUNT; i++)
for (multiplayerId = gRecordedBattleMultiplayerId, i = 0; i < MAX_LINK_PLAYERS; i++)
{
switch (gLinkPlayers[i].id)
{
@@ -502,7 +502,7 @@ static void InitLinkBtlControllers(void)
if (gBattleTypeFlags & BATTLE_TYPE_IS_MASTER)
gBattleMainFunc = BeginBattleIntro;
for (i = 0; i < MAX_BATTLERS_COUNT; i++)
for (i = 0; i < MAX_LINK_PLAYERS; i++)
{
switch (gLinkPlayers[i].id)
{