More inclusive check. It can be all 0s you know

This commit is contained in:
Eric MacDonald
2021-09-10 23:33:09 -04:00
parent 30f7ff83fa
commit 6af01ce08f

View File

@@ -483,7 +483,7 @@ class WTVLzpf {
this.AddBits((this.checksum << 0x18) & 0xFFFFFFFF, 0x08);
// If we have leftover bits then add it.
if (this.current_bits != 0x00) {
if (this.current_bit_length > 0) {
this.AddByte((this.current_bits >>> 0x18) & 0xFF);
}