mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 15:30:35 +00:00
Don't allocate a 0 array in savedata savestates.
This commit is contained in:
parent
07a5dca98e
commit
7a0c1f822d
@ -1178,9 +1178,16 @@ void SavedataParam::DoState(PointerWrap &p)
|
||||
{
|
||||
if (saveDataList != NULL)
|
||||
delete [] saveDataList;
|
||||
saveDataList = new SaveFileInfo[saveDataListCount];
|
||||
if (saveDataListCount != 0)
|
||||
{
|
||||
saveDataList = new SaveFileInfo[saveDataListCount];
|
||||
p.DoArray(saveDataList, saveDataListCount);
|
||||
}
|
||||
else
|
||||
saveDataList = NULL;
|
||||
}
|
||||
p.DoArray(saveDataList, saveDataListCount);
|
||||
else
|
||||
p.DoArray(saveDataList, saveDataListCount);
|
||||
p.DoMarker("SavedataParam");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user