Merged revision(s) 5152 from trunk/desmume/src:

fix small mistake in r5121 that whacks all battery saves when making a savestate
........
This commit is contained in:
zeromus 2015-04-05 18:35:43 +00:00
parent 5bfe553a8b
commit 4fe116b423
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