diff --git a/client/cl_dataview.lua b/client/cl_dataview.lua index 4026509..b40f0cc 100644 --- a/client/cl_dataview.lua +++ b/client/cl_dataview.lua @@ -182,7 +182,7 @@ SetFixed = function(self, offset, value, code) local size = self.length - newoff + 1 fmt[#fmt + 1] = "c" .. tostring(size) - values[#values + 1] = self.blob:sub(newoff, size) + values[#values + 1] = self.blob:sub(newoff, self.length) end self.blob = string.pack(table.concat(fmt, ""), table.unpack(values)) @@ -220,4 +220,4 @@ for label,datatype in pairs(DataView.Types) do end end -return DataView,DataStream \ No newline at end of file +return DataView,DataStream