GBA Saveata: Fix fumbled check

This commit is contained in:
Vicki Pfau 2023-03-05 14:21:47 -08:00
parent 59ebf1c12d
commit 89f8873df3
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ size_t GBASavedataSize(const struct GBASavedata* savedata) {
bool GBASavedataLoad(struct GBASavedata* savedata, struct VFile* in) {
if (savedata->data) {
if (!in || savedata->type != SAVEDATA_FORCE_NONE) {
if (!in || savedata->type == SAVEDATA_FORCE_NONE) {
return false;
}
ssize_t size = GBASavedataSize(savedata);