Fix a savedata access violation

This commit is contained in:
Raul Tambre 2015-10-20 12:34:54 +03:00
parent d1b5dcfdad
commit 6f8544281a

View file

@ -308,10 +308,13 @@ never_inline s32 savedata_op(PPUThread& ppu, u32 operation, u32 version, vm::cpt
} }
if (selected == -1) if (selected == -1)
{
if (fixedSet->dirName)
{ {
save_entry.dirName = fixedSet->dirName.get_ptr(); save_entry.dirName = fixedSet->dirName.get_ptr();
} }
} }
}
if (selected >= 0) if (selected >= 0)
{ {