From a086c21ba7c2fc74e7a18f906d166ffb4057d0e7 Mon Sep 17 00:00:00 2001 From: zeromus Date: Tue, 21 Jul 2009 23:18:22 +0000 Subject: [PATCH] fix savestate saving --- 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 5bd814633..91b14a2cc 100644 --- a/desmume/src/saves.cpp +++ b/desmume/src/saves.cpp @@ -749,7 +749,7 @@ static bool savestate_save(std::ostream* outstream, int compressionLevel) if(compressionLevel != Z_NO_COMPRESSION) { //generate the savestate in memory first - std::ostream* os = (std::ostream*)&ms; + os = (std::ostream*)&ms; writechunks(os); ms.flush(); }