Fix loading of "version 1" PSv saves
These are apparently the ones without sign data. Was broken by c31267b06f
.
This commit is contained in:
parent
16df10bc39
commit
4304bda6d1
@ -1852,8 +1852,8 @@ void GameSave::readPSv(const std::vector<char> &dataVec)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p >= dataLength)
|
if (p == dataLength) // no sign data, "version 1" PSv
|
||||||
throw ParseException(ParseException::Corrupt, "Ran past data buffer");
|
return;
|
||||||
|
|
||||||
j = data[p++];
|
j = data[p++];
|
||||||
for (i=0; i<j; i++)
|
for (i=0; i<j; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user