From 24d3d5dac40562f22a43eb9934c90165ace92a35 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 25 Feb 2013 19:06:37 +0000 Subject: AnvilStats: Added ChunkExtract mode of operation, splitting Anvil files into individual chunks. Both original zlibbed chunks and re-gzipped chunks are output. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1223 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/OSSupport/File.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/OSSupport/File.cpp') diff --git a/source/OSSupport/File.cpp b/source/OSSupport/File.cpp index 15a37a36f..bd2670217 100644 --- a/source/OSSupport/File.cpp +++ b/source/OSSupport/File.cpp @@ -94,10 +94,9 @@ bool cFile::Open(const AString & iFileName, eMode iMode) void cFile::Close(void) { - ASSERT(IsOpen()); // You should not close file objects that don't have an open file. - if (!IsOpen()) { + // Closing an unopened file is a legal nop return; } -- cgit v1.2.3