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)
|
||||
throw ParseException(ParseException::Corrupt, "Ran past data buffer");
|
||||
if (p == dataLength) // no sign data, "version 1" PSv
|
||||
return;
|
||||
|
||||
j = data[p++];
|
||||
for (i=0; i<j; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user