summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-09-03 16:29:01 -0400
committerPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-09-04 19:49:53 -0400
commitabae52a017ff8f6c98b6e3b7f6c557dd775df410 (patch)
treeade649846a7eab19b796b435e20d9f4207ffdbbe
parent3746efb9c243f2c7df2ff5f0f420218fd6e4396e (diff)
Fakematch resolved
-rw-r--r--src/save.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/save.c b/src/save.c
index 3ae2f6fd5..1106782e0 100644
--- a/src/save.c
+++ b/src/save.c
@@ -648,12 +648,10 @@ static void UpdateSaveAddresses(void)
gRamSaveSectionLocations[i].size = sSaveSectionOffsets[i].size;
}
- for (i = SECTOR_ID_PKMN_STORAGE_START; i <= SECTOR_ID_PKMN_STORAGE_END; i++)
+ for (; i <= SECTOR_ID_PKMN_STORAGE_END; i++) //i = SECTOR_ID_PKMN_STORAGE_START; in the initialization clause does not match
{
gRamSaveSectionLocations[i].data = (void*)(gPokemonStoragePtr) + sSaveSectionOffsets[i].toAdd;
gRamSaveSectionLocations[i].size = sSaveSectionOffsets[i].size;
-
- i++;i--; // needed to match
}
}