Fixed save deletion using the wrong file number

This commit is contained in:
Mr-Wiseguy 2024-05-04 23:48:42 -04:00
parent 300af8c8c4
commit db41873d69

View File

@ -194,7 +194,7 @@ void Sram_EraseSave(FileSelectState* fileSelect2, SramContext* sramCtx, s32 file
if (gSaveContext.flashSaveAvailable) {
if (fileSelect->isOwlSave[fileNum + 2]) {
// @recomp Call the new owl save deletion function.
delete_owl_save(sramCtx, gSaveContext.fileNum);
delete_owl_save(sramCtx, fileNum);
fileSelect->isOwlSave[fileNum + 2] = false;
}
bzero(sramCtx->saveBuf, SAVE_BUFFER_SIZE);