Make flag bits string mutable (unfreeze)

This commit is contained in:
ChillerDragon 2022-11-05 18:01:04 +01:00
parent 39389ae379
commit a3f28aaf37

View file

@ -47,7 +47,7 @@ class NetChunk
@@sent_vital_chunks += 1
seq = @@sent_vital_chunks if seq.nil?
flag_bits = '00'
flag_bits = '00'.dup
flag_bits[0] = flags[:resend] ? '1' : '0'
flag_bits[1] = flags[:vital] ? '1' : '0'