[2783433] fix 64bit error in savestate writing (thanks martin)
This commit is contained in:
parent
6a1ff20e07
commit
7bfbd6b887
|
@ -611,7 +611,7 @@ static int SubWrite(std::ostream* os, SFORMAT *sf)
|
|||
int size = sf->size;
|
||||
|
||||
//add size of current node to the accumulator
|
||||
acc += sizeof(sf->desc) + sizeof(sf->size) + sizeof(sf->count);
|
||||
acc += 4 + sizeof(sf->size) + sizeof(sf->count);
|
||||
acc += count * size;
|
||||
|
||||
if(os) //Are we writing or calculating the size of this block?
|
||||
|
|
Loading…
Reference in New Issue