Fix loading of "version 1" PSv saves

These are apparently the ones without sign data. Was broken by c31267b06f.
This commit is contained in:
Tamás Bálint Misius 2022-12-23 09:55:24 +01:00
parent 16df10bc39
commit 4304bda6d1
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -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++)