No need to reset zlib (copypasta error)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@381 0a769ca7-a7f5-676a-18bf-c427514a06d6master
parent
69a4ee5383
commit
d63b092e02
|
@ -143,7 +143,6 @@ bool cWSSAnvil::LoadChunkFromData(const cChunkCoords & a_Chunk, const AString &
|
||||||
strm.avail_out = sizeof(Uncompressed);
|
strm.avail_out = sizeof(Uncompressed);
|
||||||
strm.next_in = (Bytef *)a_Data.data();
|
strm.next_in = (Bytef *)a_Data.data();
|
||||||
strm.avail_in = a_Data.size();
|
strm.avail_in = a_Data.size();
|
||||||
inflateReset(&strm);
|
|
||||||
int res = inflate(&strm, Z_FINISH);
|
int res = inflate(&strm, Z_FINISH);
|
||||||
inflateEnd(&strm);
|
inflateEnd(&strm);
|
||||||
if (res != Z_STREAM_END)
|
if (res != Z_STREAM_END)
|
||||||
|
|
Loading…
Reference in New Issue