mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
fixes
This commit is contained in:
parent
f539ddf9e0
commit
19237b60dc
2 changed files with 5 additions and 5 deletions
|
|
@ -54,7 +54,7 @@ function lib.write(descriptor, data)
|
|||
local end_pos = pos + data_length - 1
|
||||
|
||||
-- size ensuring
|
||||
if endPos > buf_length then
|
||||
if end_pos > buf_length then
|
||||
for i = buf_length + 1, end_pos do
|
||||
buf[i] = 0
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue