mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2024-11-25 14:16:58 +01:00
Fixed save deletion using the wrong file number
This commit is contained in:
parent
300af8c8c4
commit
db41873d69
@ -194,7 +194,7 @@ void Sram_EraseSave(FileSelectState* fileSelect2, SramContext* sramCtx, s32 file
|
|||||||
if (gSaveContext.flashSaveAvailable) {
|
if (gSaveContext.flashSaveAvailable) {
|
||||||
if (fileSelect->isOwlSave[fileNum + 2]) {
|
if (fileSelect->isOwlSave[fileNum + 2]) {
|
||||||
// @recomp Call the new owl save deletion function.
|
// @recomp Call the new owl save deletion function.
|
||||||
delete_owl_save(sramCtx, gSaveContext.fileNum);
|
delete_owl_save(sramCtx, fileNum);
|
||||||
fileSelect->isOwlSave[fileNum + 2] = false;
|
fileSelect->isOwlSave[fileNum + 2] = false;
|
||||||
}
|
}
|
||||||
bzero(sramCtx->saveBuf, SAVE_BUFFER_SIZE);
|
bzero(sramCtx->saveBuf, SAVE_BUFFER_SIZE);
|
||||||
|
Loading…
Reference in New Issue
Block a user