fix frontier not getting cleared on new game

This commit is contained in:
cawtds 2026-04-01 00:05:27 +02:00
parent 3dbb3ae7c9
commit 1d5a65e16c

View File

@ -85,9 +85,12 @@ static void ClearPokedexFlags(void)
memset(&gSaveBlock1Ptr->dexSeen, 0, sizeof(gSaveBlock1Ptr->dexSeen));
}
static void ClearEReaderTrainer(void)
static void ClearFrontierRecord(void)
{
CpuFill32(0, &gSaveBlock2Ptr->frontier.ereaderTrainer, sizeof(gSaveBlock2Ptr->frontier.ereaderTrainer));
CpuFill32(0, &gSaveBlock2Ptr->frontier, sizeof(gSaveBlock2Ptr->frontier));
gSaveBlock2Ptr->frontier.opponentNames[0][0] = EOS;
gSaveBlock2Ptr->frontier.opponentNames[1][0] = EOS;
}
static void WarpToPlayersRoom(void)
@ -126,7 +129,7 @@ void NewGameInitData(void)
gDifferentSaveFile = TRUE;
ZeroPlayerPartyMons();
ZeroEnemyPartyMons();
ClearEReaderTrainer();
ClearFrontierRecord();
ClearSav1();
ClearSav3();
ClearMailData();