System3: L 101-126 returns 255 if save file does not exist

This fixes an issue in Hashiri Onna II where "Data Load" appears in the
start menu even though there is no save. (#32)
This commit is contained in:
kichikuou
2024-12-11 17:00:14 +09:00
parent eab5eb075d
commit 989b6a844d
+3 -1
View File
@@ -645,7 +645,9 @@ void NACT_Sys3::cmd_l()
auto fio = FILEIO::open(file_name, FILEIO_READ_BINARY | FILEIO_SAVEDATA);
if (fio) {
fio->seek(112 + 16, SEEK_SET);
var[0] = fio->getw();
RND = fio->getw();
} else {
RND = 255;
}
}
}