[2783433] fix 64bit error in savestate writing (thanks martin)

This commit is contained in:
zeromus 2009-05-02 08:13:42 +00:00
parent 6a1ff20e07
commit 7bfbd6b887
1 changed files with 1 additions and 1 deletions

View File

@ -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?