Fix error check

This commit is contained in:
Alexander Batalov 2022-10-29 21:09:53 +03:00
parent 3488833c2e
commit bdf2c219ab
1 changed files with 1 additions and 1 deletions

View File

@ -2435,7 +2435,7 @@ static int _SlotMap2Game(File* stream)
debugPrint("LOADSAVE: in SlotMap2Game\n");
int v2;
if (fileReadInt32(stream, &v2) == 1) {
if (fileReadInt32(stream, &v2) == -1) {
debugPrint("LOADSAVE: returning 1\n");
return -1;
}