Commit 6ed99679 authored by nanahira's avatar nanahira

fix

parent 8d558fb3
Pipeline #4744 passed with stages
in 6 minutes and 16 seconds
......@@ -124,7 +124,7 @@ class Replay
header = Replay.readHeader reader
restBuffer = reader.readAll()
lzmaBuffer = Buffer.concat [header.getLzmaHeader(), restBuffer]
if !header.isCompressed
if header.isCompressed
decompressed = restBuffer
else
decompressed = Buffer.from lzma.decompress lzmaBuffer
......
......@@ -185,7 +185,7 @@
header = Replay.readHeader(reader);
restBuffer = reader.readAll();
lzmaBuffer = Buffer.concat([header.getLzmaHeader(), restBuffer]);
if (!header.isCompressed) {
if (header.isCompressed) {
decompressed = restBuffer;
} else {
decompressed = Buffer.from(lzma.decompress(lzmaBuffer));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment