mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-24 00:13:53 +01:00
Fix ZstdDecompressor error check
This commit is contained in:
parent
b0ca3d7066
commit
f471554294
@ -47,9 +47,9 @@ ustring ZstdDecompressor::decompress()
|
||||
buffer.resize(outbuf.size);
|
||||
outbuf.dst = &buffer[0];
|
||||
}
|
||||
} while (ret != 0);
|
||||
if (ZSTD_isError(ret))
|
||||
if (ret && ZSTD_isError(ret))
|
||||
throw DecompressError();
|
||||
} while (ret != 0);
|
||||
|
||||
m_seekPos = inbuf.pos;
|
||||
buffer.resize(outbuf.pos);
|
||||
|
Loading…
Reference in New Issue
Block a user