Skip to content

Commit

Permalink
fix data_buffer:put_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Dec 21, 2024
1 parent d6ccdf9 commit c9b69fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion res/modules/data_buffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function data_buffer:put_bytes(bytes)
self:put_byte(bytes[i])
end
else
self.bytes:append(bytes)
self.bytes:insert(self.pos, bytes)
self.pos = self.pos + #bytes
end
end
Expand Down

0 comments on commit c9b69fd

Please sign in to comment.