mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2025-02-24 09:39:56 +00:00
Fix error check
This commit is contained in:
parent
3488833c2e
commit
bdf2c219ab
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user