Merge pull request #3616 from sum2012/patch-2

Fix Summon Night 5,when there is a save,make new game would crash
This commit is contained in:
Henrik Rydgård 2013-09-06 08:05:40 -07:00
commit 3d198694dd

View File

@ -526,7 +526,8 @@ bool SavedataParam::Load(SceUtilitySavedataParam *param, const std::string &save
if(DecryptSave(decryptMode, data_base, &saveSize, &align_len, ((param->key[0] != 0)?cryptKey:0)) == 0)
{
memcpy(data_, data_base, saveSize);
if (param->dataBuf.IsValid())
memcpy(data_, data_base, saveSize);
saveDone = true;
}
delete[] data_base;