From 7bfbd6b887098a0d545100fb80d3b58e1cc2c425 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 2 May 2009 08:13:42 +0000 Subject: [PATCH] [2783433] fix 64bit error in savestate writing (thanks martin) --- desmume/src/saves.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/saves.cpp b/desmume/src/saves.cpp index 5dd34f401..824cb4a89 100644 --- a/desmume/src/saves.cpp +++ b/desmume/src/saves.cpp @@ -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?