From 264f825549ecd23046ad049733870d0516d59e89 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 2 Jul 2006 07:27:33 +0000 Subject: Fixed a bug in the serializer that would close the file it was using even when it shouldn't, and added the serializerbzip2, which lets you read and write to compressed streams. --- src/serializerbinary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/serializerbinary.cpp') diff --git a/src/serializerbinary.cpp b/src/serializerbinary.cpp index 4b741ae..f2d8371 100644 --- a/src/serializerbinary.cpp +++ b/src/serializerbinary.cpp @@ -29,7 +29,7 @@ SerializerBinary::~SerializerBinary() void SerializerBinary::close() { - if (fhFile != NULL) + if (fhFile != NULL && bCloseFile ) { fclose(fhFile); fhFile = NULL; -- cgit v1.2.3