void pointer standarized
This commit is contained in:
+4
-4
@@ -689,18 +689,18 @@ static u16 CalculateChecksum(void *data, u16 size)
|
||||
static void UpdateSaveAddresses(void)
|
||||
{
|
||||
int i = SECTOR_ID_SAVEBLOCK2;
|
||||
gRamSaveSectorLocations[i].data = (void*)(gSaveBlock2Ptr) + sSaveSlotLayout[i].offset;
|
||||
gRamSaveSectorLocations[i].data = (void *)(gSaveBlock2Ptr) + sSaveSlotLayout[i].offset;
|
||||
gRamSaveSectorLocations[i].size = sSaveSlotLayout[i].size;
|
||||
|
||||
for (i = SECTOR_ID_SAVEBLOCK1_START; i <= SECTOR_ID_SAVEBLOCK1_END; i++)
|
||||
{
|
||||
gRamSaveSectorLocations[i].data = (void*)(gSaveBlock1Ptr) + sSaveSlotLayout[i].offset;
|
||||
gRamSaveSectorLocations[i].data = (void *)(gSaveBlock1Ptr) + sSaveSlotLayout[i].offset;
|
||||
gRamSaveSectorLocations[i].size = sSaveSlotLayout[i].size;
|
||||
}
|
||||
|
||||
for (; i <= SECTOR_ID_PKMN_STORAGE_END; i++) //setting i to SECTOR_ID_PKMN_STORAGE_START does not match
|
||||
{
|
||||
gRamSaveSectorLocations[i].data = (void*)(gPokemonStoragePtr) + sSaveSlotLayout[i].offset;
|
||||
gRamSaveSectorLocations[i].data = (void *)(gPokemonStoragePtr) + sSaveSlotLayout[i].offset;
|
||||
gRamSaveSectorLocations[i].size = sSaveSlotLayout[i].size;
|
||||
}
|
||||
}
|
||||
@@ -951,7 +951,7 @@ u32 TryWriteSpecialSaveSector(u8 sector, u8 *src)
|
||||
s32 i;
|
||||
s32 size;
|
||||
u8 *savData;
|
||||
void* savDataBuffer;
|
||||
void *savDataBuffer;
|
||||
|
||||
if (sector != SECTOR_ID_TRAINER_HILL && sector != SECTOR_ID_RECORDED_BATTLE)
|
||||
return SAVE_STATUS_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user