fix small mistake in r5121 that whacks all battery saves when making a savestate

This commit is contained in:
zeromus 2015-04-05 18:13:43 +00:00
parent 207c00df6b
commit 6af7350461
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ bool BackupDevice::save_state(EMUFILE* os)
std::vector<u8> data(fsize);
fpMC->fseek(0, SEEK_SET);
if(data.size()!=0)
fpMC->fwrite((char *)&data[0], fsize);
fpMC->fread((char *)&data[0], fsize);
u32 version = 5;
//v0