fixed unused-result error

This commit is contained in:
Zeno Rogue 2024-04-28 01:41:25 +02:00
parent fbea2d91ce
commit 404b964f28
1 changed files with 1 additions and 1 deletions

View File

@ -1224,7 +1224,7 @@ EX void loadsave() {
if(fscanf(f, "%9999s", buf) <= 0) break;
sc.ver = buf;
if(sc.ver == "CHEATER!" && save_cheats) {
fgets(buf, 12000, f);
if(fgets(buf, 12000, f) == NULL) break;
if(fscanf(f, "%9999s", buf) <= 0) break;
sc.ver = buf;
}