port fix for UpdateSaveAddresses (from #1177)
This commit is contained in:
parent
44c2d15ca9
commit
af04d99cd9
1 changed files with 1 additions and 3 deletions
|
@ -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++) //setting i to SECTOR_ID_PKMN_STORAGE_START does not match
|
||||
{
|
||||
gRamSaveSectionLocations[i].data = (void*)(gPokemonStoragePtr) + sSaveSectionOffsets[i].toAdd;
|
||||
gRamSaveSectionLocations[i].size = sSaveSectionOffsets[i].size;
|
||||
|
||||
i++;i--; // needed to match
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue